Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncadb 文件 await connector.start(connect_timeout=timeout) 经常性报错 #63

Open
hong-0220 opened this issue Oct 25, 2022 · 0 comments

Comments

@hong-0220
Copy link

[E 221025 13:30:41 main:269] Unknown error: 'NoneType' object has no attribute 'send_cmd'
Traceback (most recent call last):
File "D:\ATX\hong\atxserver2-android-provider\asyncadb.py", line 72, in connect
stream = await TCPClient().connect(adb_host, adb_port)
File "D:\Python37\lib\site-packages\tornado\tcpclient.py", line 275, in connect
af, addr, stream = await connector.start(connect_timeout=timeout)
File "D:\Python37\lib\asyncio\tasks.py", line 318, in __wakeup
future.result()
File "D:\Python37\lib\site-packages\tornado\tcpclient.py", line 138, in on_connect_done
stream = future.result()
tornado.iostream.StreamClosedError: Stream is closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 249, in device_watch
await device.init()
File "D:\ATX\hong\atxserver2-android-provider\device.py", line 62, in init
await self._init_forwards()
File "D:\ATX\hong\atxserver2-android-provider\device.py", line 168, in _init_forwards
self._whatsinput_port = await self.proxy_device_port(6677)
File "D:\ATX\hong\atxserver2-android-provider\device.py", line 212, in proxy_device_port
local_port = await self.adb_forward_to_any("tcp:" + str(device_port))
File "D:\ATX\hong\atxserver2-android-provider\device.py", line 201, in adb_forward_to_any
async for f in adb.forward_list():
File "D:\ATX\hong\atxserver2-android-provider\asyncadb.py", line 183, in forward_list
await conn.send_cmd("host:list-forward")
AttributeError: 'NoneType' object has no attribute 'send_cmd'

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

No branches or pull requests

1 participant