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

登陆后,回复特别慢,而且中间一直有报错,请大大过目

Open Creazygao opened this issue 3 years ago • 5 comments

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/local/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.8/http/client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/local/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/local/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.8/http/client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/local/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/itchat/components/login.py", line 288, in maintain_loop i = sync_check(self) File "/usr/local/lib/python3.8/site-packages/itchat/components/login.py", line 347, in sync_check r = self.s.get(url, params=params, headers=headers, File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 600, in get return self.request("GET", url, **kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 547, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

[ERROR][2023-03-03 15:50:15][wechat_channel.py:116] - ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/local/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.8/http/client.py", line 272, 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.8/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/local/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.8/http/client.py", line 272, 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 "/home/chat-wechat/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 114, in _do_send self.send(conf().get("single_chat_reply_prefix") + reply_text, reply_user_id) File "/home/chat-wechat/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 104, in send itchat.send(msg, toUserName=receiver) File "/usr/local/lib/python3.8/site-packages/itchat/components/messages.py", line 513, in send r = self.send_msg(msg, toUserName) File "/usr/local/lib/python3.8/site-packages/itchat/components/messages.py", line 283, in send_msg r = self.send_raw_msg(1, msg, toUserName) File "/usr/local/lib/python3.8/site-packages/itchat/components/messages.py", line 277, in send_raw_msg r = self.s.post(url, headers=headers, File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 635, in post return self.request("POST", url, data=data, json=json, **kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.8/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')) ^CBye~

Creazygao avatar Mar 03 '23 07:03 Creazygao

https://github.com/zhayujie/chatgpt-on-wechat/issues/310 应该和这个一样,也是被墙掉了

EnochYe avatar Mar 03 '23 08:03 EnochYe

#310 应该和这个一样,也是被墙掉了

可是我是部署在日本的服务器上的,应该不会被墙的

Creazygao avatar Mar 03 '23 09:03 Creazygao

#310 应该和这个一样,也是被墙掉了

而且我的能够收到回复,就是特别慢

Creazygao avatar Mar 03 '23 09:03 Creazygao

嗷 itchat的请求没法出去,那就是微信消息在日本的服务器上面比较难发出去

EnochYe avatar Mar 04 '23 00:03 EnochYe

这个应该是 wechat这一端网络的问题,两种可能的方案:

  1. 换个能访问wechat的服务器, 比如hk地区的
  2. 在国内服务器开代理,且可以设置部分流量走代理

zhayujie avatar Mar 04 '23 09:03 zhayujie