使用 wdaproxy 启动成功之后,我在浏览器中使用 http://localhost:8200/status 访问手机失败
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
>Python 3.9.7
>tidevice version 0.5.3
>device:15.1
启动命令:
```tidevice wdaproxy -B com.facebook.WebDriverAgentRunner.xxxx.xctrunner --port 8200```
输出日志:
```[I 211118 17:12:27 _wdaproxy:125] [c18cea4bd02197936a538149fa31672dd4cf020e] WDA check every 30.0 seconds
[D 211118 17:12:27 _wdaproxy:131] [c18cea4bd02197936a538149fa31672dd4cf020e] launch WDA
[I 211118 17:12:27 _device:958] BundleID: com.facebook.WebDriverAgentRunner.xxxx.xctrunner
[I 211118 17:12:27 _device:961] ProductVersion: 15.1
[I 211118 17:12:27 _device:963] DeviceIdentifier: c18cea4bd02197936a538149fa31672dd4cf020e
[I 211118 17:12:27 _device:802] SignIdentity: 'Apple Development: xxxxxxxxxxx'
[I 211118 17:12:27 _device:808] CFBundleExecutable: WebDriverAgentRunner-Runner
[I 211118 17:12:28 _device:839] AppContainer: /private/var/mobile/Containers/Data/Application/8F36F708-C885-4FE6-AE66-A2707969471C
[I 211118 17:12:28 _device:879] Launch 'com.facebook.WebDriverAgentRunner.xxxx.xctrunner' pid: 1711
[I 211118 17:12:28 _device:1012] Test runner ready detected
[I 211118 17:12:28 _device:1004] Start execute test plan with IDE version: 29
[I 211118 17:12:29 _device:915] WebDriverAgent start successfully
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
/usr/local/lib/python3.9/site-packages/tornado/netutil.py:274: RuntimeWarning: coroutine 'RelayTCPServer.handle_stream' was never awaited
callback(connection, address)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tornado/tcpserver.py", line 271, in _handle_connection
self.io_loop.add_future(future, lambda f: f.result())
File "/usr/local/lib/python3.9/site-packages/tornado/ioloop.py", line 589, in add_future
assert is_future(future)
AssertionError
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the `tidevice wdaproxy` command and the Tornado `tcpserver.py` callback shown in the traceback, then reproduce the failure by requesting `http://localhost:8200/status`. Done means the callback no longer raises the assertion or unawaited-coroutine warning and the status request can reach the device.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, python
- Domain
- mobile, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100