chatgpt-on-wechat icon indicating copy to clipboard operation
chatgpt-on-wechat copied to clipboard

运行2天就挂了

Open baichisong opened this issue 1 year ago • 12 comments

前置确认

  1. 网络能够访问openai接口 #351
  2. python 已安装:版本在 3.7 ~ 3.10 之间,依赖已安装
  3. 在已有 issue 中未搜索到类似问题
  4. FAQS 中无类似问题

问题描述

简要说明、截图、复现步骤等,也可以是需求或想法

终端日志 (如有报错)

[在此处粘贴终端日志]

b64577947d1d684e5ac892743d9438c

环境

  • 操作系统类型 (/Windows/):
  • Python版本 ( 执行 python3 -V ):
  • pip版本 ( 依赖问题此项必填,执行 pip3 -V):

baichisong avatar Mar 11 '23 03:03 baichisong

我是没用nohup启动的

baichisong avatar Mar 11 '23 03:03 baichisong

话说itchat最多支持多久登录状态

goldfishh avatar Mar 11 '23 04:03 goldfishh

我也是2天前挂的,目前还稳定

pm0725 avatar Mar 11 '23 08:03 pm0725

可能原因: 1.手机端下线 2.其他端登录 3.网络不稳定

zhayujie avatar Mar 11 '23 12:03 zhayujie

可能原因: 1.手机端下线 2.其他端登录 3.网络不稳定

我今天也发现了这个问题,tail -f nohup.out,只显示了一部分日志,最后LOG OUT,但实际上机器人还在运行

Martianxhc avatar Mar 11 '23 14:03 Martianxhc

root@ecs-f3be:~/chatgpt-on-wechat# tail -f nohup.out File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 145, in _do_send_voice reply_text = super().build_reply_content(query, context) File "/root/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/root/chatgpt-on-wechat/bridge/bridge.py", line 10, in fetch_reply_content return bot_factory.create_bot("chatGPT").reply(query, context) File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 27, in reply session_id = context['session_id'] KeyError: 'session_id' LOG OUT!

Martianxhc avatar Mar 11 '23 14:03 Martianxhc

@Martianxhc 这个问题只会在发送语音时出现,昨天已经修复了,获取下最新的代码就好了

zhayujie avatar Mar 11 '23 15:03 zhayujie

@Martianxhc 这个问题只会在发送语音时出现,昨天已经修复了,获取下最新的代码就好了

好的 谢谢大哥!

Martianxhc avatar Mar 11 '23 15:03 Martianxhc

同问,今天一天就挂了!是因为我手机微信关机造成的吗?

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月11日 12:58 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [zhayujie/chatgpt-on-wechat] 运行2天就挂了 (Issue #435) |

话说itchat最多支持多久登录状态

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

baichisong avatar Mar 12 '23 12:03 baichisong

一样的问题,每两天得重启重新登录一次,并无其他端登陆的情况

Melonan avatar Mar 15 '23 06:03 Melonan

一样的问题,已经好几次了,每次登录差不多一天就掉线了

nodesire7 avatar Mar 25 '23 00:03 nodesire7

这个问题是因为目前itchat 和wx建立连接时, 如果5s没有网络,就会自动掉线。

@lanvent 在 https://github.com/zhayujie/chatgpt-on-wechat/pull/587 中修复了这个问题, 可以观察下有没有解决

zhayujie avatar Mar 25 '23 06:03 zhayujie

一样的问题,2天就直接掉线了

QYC-Unity avatar Jan 10 '24 18:01 QYC-Unity