openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.41k stars 1.38k forks source link

Catched AdbError #857

Closed SmartManoj closed 6 months ago

SmartManoj commented 1 year ago

What does this TMQ env mean?

SmartManoj commented 1 year ago
[W 221220 11:39:42 __init__:218] [pid:196274] atx-agent has something wrong, auto recovering
[I 221220 11:39:42 __init__:357] [pid:196274] [192.168.186.155] wait-for-device, time left(3.0s)
127.0.0.1 - - [20/Dec/2022 11:39:42] code 400, message Bad request syntax ('CNXN\x01\x00\x00\x01\x00\x00\x10\x00ê\x00\x00\x00D[\x00\x00¼±§±host::features=shell_v2,cmd,stat_v2,ls_v2,fixed_push_mkdir,apex,abb,fixed_push_symlink_timestamp,abb_exec,remount_shell,track_app,sendrecv_v2,sendrecv_v2_brotli,sendrecv_v2_lz4,sendrecv_v2_zstd,sendrecv_v2_dry_run_send,openscreen_mdns')
127.0.0.1 - - [20/Dec/2022 11:39:42] "CNXNêD[¼±§±host::features=shell_v2,cmd,stat_v2,ls_v2,fixed_push_mkdir,apex,abb,fixed_push_symlink_timestamp,abb_exec,remount_shell,track_app,sendrecv_v2,sendrecv_v2_brotli,sendrecv_v2_lz4,sendrecv_v2_zstd,sendrecv_v2_dry_run_send,openscreen_mdns" HTTPStatus.BAD_REQUEST -
Traceback (most recent call last):
    d.send_keys(account_number)
  File "/home/smart/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 1702, in send_keys
    self.wait_fastinput_ime()
  File "/home/smart/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 1771, in wait_fastinput_ime
    ime_id, shown = self.current_ime()
  File "/home/smart/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 1790, in current_ime
    dim, _ = self.shell(['dumpsys', 'input_method'])
  File "/home/smart/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 428, in shell
    ret = self.http.post("/shell", data=data, timeout=timeout+10)
  File "/home/smart/.local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/home/smart/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 223, in request
    self.__client._prepare_atx_agent()
  File "/home/smart/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 314, in _prepare_atx_agent
    _d = self._wait_for_device()
  File "/home/smart/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 367, in _wait_for_device
    adb.wait_for(self._serial, timeout=1)
  File "/home/smart/.local/lib/python3.10/site-packages/adbutils/_adb.py", line 218, in wait_for
    c.check_okay()
  File "/home/smart/.local/lib/python3.10/site-packages/adbutils/_adb.py", line 137, in check_okay
    raise AdbError("Unknown data: %r" % data)
adbutils.errors.AdbError: Unknown data: ''