Squachen / micloud

Library for connecting to xiaomi cloud.
MIT License
150 stars 18 forks source link

login failed with "Unknown exception occurred!" #6

Open xfangfang opened 2 years ago

xfangfang commented 2 years ago

My MiCloud account is under China server.

Got response_json from _login_step2:

{
  "notificationUrl": "https://account.xiaomi.com/fe/service/verifyPhone?skipUrl=https%3A%2F%2Faccount.xiaomi.com............",
  "result": "ok",
  "code": 0,
  "captchaUrl": null,
  "description": "成功",
  "location": "",
  "securityStatus": 32,
  "pwd": 0,
  "desc": "成功"
}

try to access the notificationUrl in response_json:

image

Click YES on this website then I can login normally using micloud. Hope to be helpful when someone has the similar problem.

Squachen commented 2 years ago

Thank you, I'll leave this issue open for people to find. Might add a warning about it to the documentation when I get the time.

xfangfang commented 2 years ago

Thank you very much for this project.

Seems some exception check should be added to _login_step2, otherwise users must modify the source code to see the URL mentioned above.

if you don’t have time to do, I can add some code to check this problem.(But it may take some time)