wangshub / wechat_jump_game

微信《跳一跳》Python 辅助

Home Page:https://zhuanlan.zhihu.com/p/32452473

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iPhone无法连接

opened this issue · comments

使用环境
电脑版本 Windows 10 10.0.16299.192
Python版本 Python36
错误信息及运行代码
c:\Users\Nine Pounds\Documents\Jump\wechat_jump_game-master>python wechat_jump_auto_iOS.py
retry to connect, error: HTTPConnectionPool(host='localhost', port=8100): Max retries exceeded with url: /status (Caused
by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000229119504A8>: Failed to establish a new conn
ection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))
Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\urllib3\connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "D:\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection
raise err
File "D:\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "D:\Python\Python36\lib\http\client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "D:\Python\Python36\lib\http\client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "D:\Python\Python36\lib\http\client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "D:\Python\Python36\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "D:\Python\Python36\lib\http\client.py", line 964, in send
self.connect()
File "D:\Python\Python36\lib\site-packages\urllib3\connection.py", line 166, in connect
conn = self._new_conn()
File "D:\Python\Python36\lib\site-packages\urllib3\connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x00000229119504A8>: Failed to estab
lish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Python\Python36\lib\site-packages\urllib3\util\retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8100): Max retries exceeded with url: /statu
s (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000229119504A8>: Failed to establish a
new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\wda_init_.py", line 70, in httpdo
response = requests.request(method, url, data=data, timeout=HTTP_TIMEOUT)
File "D:\Python\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Python\Python36\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Python\Python36\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Python\Python36\lib\site-packages\requests\adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8100): Max retries exceeded with url: /st
atus (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000229119504A8>: Failed to establis
h a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\urllib3\connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "D:\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection
raise err
File "D:\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "D:\Python\Python36\lib\http\client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "D:\Python\Python36\lib\http\client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "D:\Python\Python36\lib\http\client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "D:\Python\Python36\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "D:\Python\Python36\lib\http\client.py", line 964, in send
self.connect()
File "D:\Python\Python36\lib\site-packages\urllib3\connection.py", line 166, in connect
conn = self._new_conn()
File "D:\Python\Python36\lib\site-packages\urllib3\connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x0000022911950BE0>: Failed to estab
lish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Python\Python36\lib\site-packages\urllib3\util\retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8100): Max retries exceeded with url: /statu
s (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000022911950BE0>: Failed to establish a
new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "wechat_jump_auto_iOS.py", line 50, in
s = c.session()
File "D:\Python\Python36\lib\site-packages\wda_init_.py", line 252, in session
sid = self.status()['sessionId']
File "D:\Python\Python36\lib\site-packages\wda_init_.py", line 191, in status
res = self.http.get('status')
File "D:\Python\Python36\lib\site-packages\wda_init_.py", line 101, in fetch
return self.fetch_no_alert(method, url, data)
File "D:\Python\Python36\lib\site-packages\wda_init
.py", line 107, in fetch_no_alert
return httpdo(target_url, method, data)
File "D:\Python\Python36\lib\site-packages\wda_init
.py", line 75, in httpdo
response = requests.request(method, url, data=data, timeout=HTTP_TIMEOUT)
File "D:\Python\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Python\Python36\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Python\Python36\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Python\Python36\lib\site-packages\requests\adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8100): Max retries exceeded with url: /st
atus (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000022911950BE0>: Failed to establis
h a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))
改进和建议:无

@TNEYangMingyu 麻烦使用mac...

@F-loat 这个真的服了,文档假的?

也没辙啊[摊手]

明白了 谢谢😜

@TNEYangMingyu 😸