cixingguangming55555 / wechat-bot

带二次开发接口的PC微信聊天机器人
MIT License
2.4k stars 657 forks source link

每次重新启动微信,都需要注入吗? #164

Open helai78 opened 2 years ago

helai78 commented 2 years ago

每次重新启动微信,都需要注入吗? 如果不注入,就会显示:计算机拒绝 每次注入后,就功能正常

helai78 commented 2 years ago

Traceback (most recent call last): File "C:\Program Files\Python37\lib\site-packages\urllib3\connection.py", line 170, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "C:\Program Files\Python37\lib\site-packages\urllib3\util\connection.py", line 96, in create_connection raise err File "C:\Program Files\Python37\lib\site-packages\urllib3\util\connection.py", line 86, in create_connection sock.connect(sa) ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\Python37\lib\site-packages\urllib3\connectionpool.py", line 706, in urlopen chunked=chunked, File "C:\Program Files\Python37\lib\site-packages\urllib3\connectionpool.py", line 394, in _make_request conn.request(method, url, **httplib_request_kw) File "C:\Program Files\Python37\lib\site-packages\urllib3\connection.py", line 234, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "C:\Program Files\Python37\lib\http\client.py", line 1277, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Program Files\Python37\lib\http\client.py", line 1323, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Program Files\Python37\lib\http\client.py", line 1272, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Program Files\Python37\lib\http\client.py", line 1032, in _send_output self.send(msg) File "C:\Program Files\Python37\lib\http\client.py", line 972, in send self.connect() File "C:\Program Files\Python37\lib\site-packages\urllib3\connection.py", line 200, in connect conn = self._new_conn() File "C:\Program Files\Python37\lib\site-packages\urllib3\connection.py", line 182, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x0000028F0FB2F588>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

helai78 commented 2 years ago

但是一旦注入后,功能就正常了

JoffreyN commented 2 years ago

当然需要

cixingguangming55555 commented 2 years ago

每次都需要重新注入的