Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Amazfit account : Client Error: Unauthorized for url: https://account.huami.com/v2/client/login #18

Open
ncartron opened this issue Oct 15, 2020 · 7 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@ncartron
Copy link

Hi and thanks for this nice initiative.

I wanted to get the BT keys as well as AGPS files from a Stratos 3, but using huami-token from MacOS gives me this error:

➜ ./huami_token.py -m amazfit -e "[email protected]" -p "redacted" --bt_keys
Getting access token with amazfit login method...
Token: ['redacted']
Logging in...
Traceback (most recent call last):
  File "./huami_token.py", line 252, in <module>
    device.login()
  File "./huami_token.py", line 104, in login
    response.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://account.huami.com/v2/client/login

I confirmed that the email address and password are correct - that's the ones i used when connecting using the Amazfit / Zepp app on Android.

Any idea?

Thanks!
Nico

@argrento
Copy link
Owner

Hello!

I am not sure, how Stratos 3 AGPS data is downloaded, because I have no Stratos watch. I will add this to the project readme.

Sorry for the inconvenience.

@argrento argrento self-assigned this Oct 17, 2020
@argrento argrento added bug Something isn't working documentation Improvements or additions to documentation labels Oct 17, 2020
@ncartron
Copy link
Author

Hi @argrento and thanks for the answer.
I don't think the issue I'm encountering is because of the watch - I had created my Amazfit account before, when I had a GTS.

@argrento
Copy link
Owner

Are you using VPN or proxy on your PC?

@ncartron
Copy link
Author

ncartron commented Oct 19, 2020 via email

@argrento
Copy link
Owner

Have you tried logging in via Xiaomi account?
https://github.com/argrento/huami-token#logging-in-with-xiaomi-account

@ncartron
Copy link
Author

I have not, since I only have an Amazfit account, and my Stratos 3 is registered with that account, not a Xiaomi one :)

@8ear
Copy link

8ear commented Mar 27, 2021

Do you use an internal account?
I used an google account instead of internal and it looks that it does not work for me.
So I think the problem here is that I do not use the internal amazfit authentication.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants