Exception on login 《188********》: {'qs': '%3Fsid%3Dxiaomiio%26_json%3Dtrue', 'code': 70016, 'captchaUrl': None, 'callback': 'https://sts.api.io.mi.com/sts', 'location': '', 'securityStatus': 0, 'pwd': 0, '_sign': '0psXfr43eNI0IX6q9Suk3qWbRqU=', 'sid': 'xiaomiio', 'desc': '登录验证失败'}
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/miservice/miaccount.py", line 69, in login
raise Exception(resp)
Exception: {'qs': '%3Fsid%3Dxiaomiio%26_json%3Dtrue', 'code': 70016, 'captchaUrl': None, 'callback': 'https://sts.api.io.mi.com/sts', 'location': '', 'securityStatus': 0, 'pwd': 0, '_sign': '0psXfr43eNI0IX6q9Suk3qWbRqU=', 'sid': 'xiaomiio', 'desc': '登录验证失败'}
Error https://api.io.mi.com/app/home/device_list: Login failed
Traceback (most recent call last):
File "/usr/local/bin/micli.py", line 53, in <module>
asyncio.run(main(' '.join(argv[argi:])))
File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/bin/micli.py", line 32, in main
result = await miio_command(service, env.get('MI_DID'), args, sys.argv[0] + ' ')
File "/usr/local/lib/python3.8/dist-packages/miservice/miiocommand.py", line 64, in miio_command
return await service.device_list(argc > 0 and argv[0], argc > 1 and string_to_value(argv[1]), argc > 2 and argv[2])
File "/usr/local/lib/python3.8/dist-packages/miservice/miioservice.py", line 88, in device_list
result = await self.miio_request('/home/device_list', {'getVirtualModel': bool(getVirtualModel), 'getHuamiDevices': int(getHuamiDevices)})
File "/usr/local/lib/python3.8/dist-packages/miservice/miioservice.py", line 58, in miio_request
return (await self.account.mi_request('xiaomiio', self.server + uri, prepare_data, headers))['result']
File "/usr/local/lib/python3.8/dist-packages/miservice/miaccount.py", line 134, in mi_request
raise Exception(error)
Exception: Error https://api.io.mi.com/app/home/device_list: Login failed