MiService icon indicating copy to clipboard operation
MiService copied to clipboard

Got Error https://api.io.mi.com/app/home/device_list: Login failed

Open eons2long opened this issue 2 years ago • 2 comments

I'm trying to depoy this project on my linux device, i set the MI_USER and MI_PASS first ,when i run the micli.py list, I got this. it works well on my other deivces except this one

Exception on login 118***9572: 'userId' Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/miservice/miaccount.py", line 71, in login self.token['userId'] = resp['userId'] ~~~~^^^^^^^^^^ KeyError: 'userId' Error https://api.io.mi.com/app/home/device_list: Login failed

eons2long avatar Jan 31 '23 11:01 eons2long

proxy的原因,我关掉vpn就行了

CooperHash avatar Feb 23 '23 13:02 CooperHash

这不是 keyerror吗?是 token 里的 userId 问题还是 resp 里的userId问题? 另外,建议你给一下resp的完成内容出来

tars-sh avatar Feb 26 '23 03:02 tars-sh