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

部署在railway最近一周频繁登出掉线。重新部署过了还是依旧

Open Yisiooo opened this issue 1 year ago • 11 comments

前置确认

  • [X] 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • [X] 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Railway

运行的python版本是?

python 3.7

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

部署后1-2天自动登出。

问题描述 😯

之前部署了有3-4个月了。很正常稳定。但是最近1周断了4次了。每次间隔1-2天。扔给gpt也问了下。 给了4个可能。

远程连接断开: RemoteDisconnected('Remote end closed connection without response') 这个异常意味着您的请求没有得到远程服务器的响应,服务器端可能关闭了连接。

协议错误: urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) 也表明了有协议上的问题。

重试失败: 这个日志中也涉及到了重试机制,但似乎重试也没有解决问题。

retcode:"1102": 这个代码可能是一个特定于服务的错误代码。需要查阅相关文档来解析这个代码的具体含义。

但是我也不太懂。我直觉感觉是不是railway连国内有困难?

终端日志 📒

Traceback (most recent call last):

File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 714, in urlopen

httplib_response = self._make_request(

File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 466, in _make_request

six.raise_from(e, None)

File "", line 3, in raise_from

File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 461, in _make_request

httplib_response = conn.getresponse()

File "/usr/local/lib/python3.10/http/client.py", line 1375, in getresponse

response.begin()

File "/usr/local/lib/python3.10/http/client.py", line 318, in begin

version, status, reason = self._read_status()

File "/usr/local/lib/python3.10/http/client.py", line 287, in _read_status

raise RemoteDisconnected("Remote end closed connection without"

http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send

resp = conn.urlopen(

File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 798, in urlopen

retries = retries.increment(

File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 550, in increment

raise six.reraise(type(error), error, _stacktrace)

File "/usr/local/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise

raise value.with_traceback(tb)

File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 714, in urlopen

httplib_response = self._make_request(

File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 466, in _make_request

six.raise_from(e, None)

File "", line 3, in raise_from

File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 461, in _make_request

httplib_response = conn.getresponse()

File "/usr/local/lib/python3.10/http/client.py", line 1375, in getresponse

response.begin()

File "/usr/local/lib/python3.10/http/client.py", line 318, in begin

version, status, reason = self._read_status()

File "/usr/local/lib/python3.10/http/client.py", line 287, in _read_status

raise RemoteDisconnected("Remote end closed connection without"

urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/app/lib/itchat/components/login.py", line 301, in maintain_loop

msgList, contactList = self.get_msg()

File "/app/lib/itchat/components/login.py", line 390, in get_msg

r = self.s.post(url, data=json.dumps(data),

File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post

return self.request("POST", url, data=data, json=json, **kwargs)

File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request

resp = self.send(prep, **send_kwargs)

File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send

r = adapter.send(request, **kwargs)

File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 547, in send

raise ConnectionError(err, request=request)

requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Unexpected sync check result: window.synccheck={retcode:"1102",selector:"0"}

LOG OUT!

具体日志如上。

Yisiooo avatar Oct 09 '23 11:10 Yisiooo

我也是

DayDreammy avatar Oct 14 '23 08:10 DayDreammy

我也是,解决了吗?

LoneStarya avatar Oct 23 '23 06:10 LoneStarya

https://github.com/zhayujie/chatgpt-on-wechat/issues/1242

GXR806 avatar Oct 28 '23 06:10 GXR806

我在国外也经常断

nicedays233 avatar Oct 31 '23 15:10 nicedays233

同样会自动退出登陆,然后docker关闭 Unexpected sync check result: window.synccheck={retcode:"1102",selector:"0"} LOG OUT! 容器关闭最后打印的日志

gongxun0916 avatar Nov 24 '23 01:11 gongxun0916

遇到了类似的问题

superpig33 avatar Jan 23 '24 08:01 superpig33

遇到了类似的问题 Unexpected sync check result: window.synccheck={retcode:"1102",selector:"0"} LOG OUT! 容器关闭最后打印的日志

louyongjiu avatar Jan 29 '24 06:01 louyongjiu

我是Python3.10版本

Traceback (most recent call last): File "D:\all app\chatgpt-on-wechat\lib\itchat\components\login.py", line 301, in maintain_loop msgList, contactList = self.get_msg() File "D:\all app\chatgpt-on-wechat\lib\itchat\components\login.py", line 390, in get_msg r = self.s.post(url, data=json.dumps(data), File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 513, in send raise ProxyError(e, request=request) requests.exceptions.ProxyError: HTTPSConnectionPool(host='wx2.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/webwxsync?sid=804+zH/P9oi4U19F&skey=@crypt_7d65ad35_aa43110e4f1fb6684429f431ca8225b6&pass_ticket=g%2B6wuaweVgLQXimNgXTX5A7%2BAXtm1FHYI1G4Mr3H6%2BybggyBu%2Fw%2B2fqoPjk%2BATCDJfZRKSc%2FGrJcjQKodNqZOA%3D%3D (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))

lx45918275717 avatar Feb 24 '24 00:02 lx45918275717

我也是,保持稳定运行约一条后就开始报错了

katfionn avatar May 28 '24 06:05 katfionn

插眼,国内阿里云部署,感觉一天掉一次,同错误码:Unexpected sync check result: window.synccheck={retcode:"1102",selector:"0"}

dp-dingzhaohan avatar May 30 '24 08:05 dp-dingzhaohan