argrento / huami-token

Script to obtain watch or band bluetooth token from Huami servers
MIT License
410 stars 94 forks source link

Login step for Xiaomi method failing #32

Open johnnymck opened 3 years ago

johnnymck commented 3 years ago

When running python huami_token.py --method xiaomi --bt_keys and following the instructions in README.md, after the copying and pasting the redirect URL into the terminal, I get the following error:


Traceback (most recent call last):
  File "huami_token.py", line 352, in <module>
    device.login()
  File "huami_token.py", line 141, in login
    raise ValueError(f"Login error. Error: {login_result['error_code']}")
ValueError: Login error. Error: 0117```

If this is an error on my end, I'll be glad to best figure out how to solve this :)
argrento commented 3 years ago

This error stands for AUTH_SERVER_ERROR_ACCOUNT_NOT_REGISTER. Try this: https://github.com/argrento/huami-token/issues/22#issuecomment-733890511

johnnymck commented 3 years ago

I'll give this a go, thanks :)

johnnymck commented 3 years ago

Tried linking with Zepp, then trying the amazfit login. Worked a treat, TYSM. Might want to add a note to this effect on the readme?

Cheers and all the best.