MiService
MiService copied to clipboard
Got Error https://api.io.mi.com/app/home/device_list: Login failed
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
proxy的原因,我关掉vpn就行了
这不是 keyerror吗?是 token 里的 userId 问题还是 resp 里的userId问题? 另外,建议你给一下resp的完成内容出来