Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

android 8.X 手机上偶尔出现请求超时,问题出现在open_identify()这个函数 #192

Open
lrw3716740 opened this issue Sep 27, 2018 · 0 comments

Comments

@lrw3716740
Copy link

Traceback (most recent call last):
File "run.py", line 445, in
main()
File "run.py", line 348, in main
ui = u2.connect_usb(serial=d)
File "/usr/local/lib/python2.7/site-packages/uiautomator2/init.py", line 240, in connect_usb
d.healthcheck()
File "/usr/local/lib/python2.7/site-packages/uiautomator2/init.py", line 551, in healthcheck
self.open_identify()
File "/usr/local/lib/python2.7/site-packages/uiautomator2/init.py", line 876, in open_identify
'com.github.uiautomator/.IdentifyActivity', '-e', 'theme', theme
File "/usr/local/lib/python2.7/site-packages/uiautomator2/init.py", line 708, in shell
'timeout': str(timeout)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 559, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python2.7/site-packages/uiautomator2/init.py", line 266, in request
method, url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 526, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=58047): Read timed out. (read timeout=60)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant