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

ValueError: Login error. Error: 0117 #42

Open
evan0625 opened this issue Oct 3, 2021 · 9 comments
Open

ValueError: Login error. Error: 0117 #42

evan0625 opened this issue Oct 3, 2021 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@evan0625
Copy link

evan0625 commented Oct 3, 2021

When I use the command ‘python3 huami_token.py --method xiaomi --bt_keys’,
I have obtained the code and entered it,such as https://hm.xiaomi.com/watch.do?code=C3_XXXXXXXXXXXXXXXX
I make an error, as follows:
ValueError: Login error. Error: 0117
I print return msg,that is: {'error_code': '0117', 'data': {'wechatPhone': None, 'accessToken': 'V3_xxxxxxxxxxxxxxxxx', 'refreshToken': 'R3_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'}}

When I use the command 'python3 huami_token.py --method amazfit --email [email protected] --password xxxx --bt_keys',
I make an error, as follows:
ValueError: Wrong E-mail or Password.Error: ['401']
I print return msg,that is : {'error': ['401'], 'state': ['REDIRECTION'], 'region': ['cn-northwest-1']}

Thanks.

@argrento
Copy link
Owner

argrento commented Oct 4, 2021

Hi!
As a workaround you can try replace us-west-2 with cn-northwest-1 here:

'region': 'us-west-2',

If you try this, please post the result here.

@argrento argrento self-assigned this Oct 4, 2021
@argrento argrento added bug Something isn't working enhancement New feature or request and removed enhancement New feature or request labels Oct 4, 2021
@evan0625
Copy link
Author

evan0625 commented Oct 5, 2021

Hi! As a workaround you can try replace us-west-2 with cn-northwest-1 here:

'region': 'us-west-2',

If you try this, please post the result here.

I tried your method, but it didn't work。
I print return msg,that is also : {'error': ['401'], 'state': ['REDIRECTION'], 'region': ['cn-northwest-1']}
I think it got the IP address。

@argrento
Copy link
Owner

argrento commented Oct 5, 2021

I have obtained the code and entered it,such as https://hm.xiaomi.com/watch.do?code=C3_XXXXXXXXXXXXXXXX

I've never seen such a code.

Also which app do you normally use, Zepp or Mi Fit?

@evan0625
Copy link
Author

evan0625 commented Oct 6, 2021

I have obtained the code and entered it,such as https://hm.xiaomi.com/watch.do?code=C3_XXXXXXXXXXXXXXXX

I've never seen such a code.

Also which app do you normally use, Zepp or Mi Fit?

I use Zepp。
C3_XXXXXXXXXXXXXXXX is Hidden by me,that is just a string。
I used an old xiaomi account,it is no mistake,but i can not get authkey。
I think Xiaomi has disabled this function。

@Luanxins
Copy link

哈,这个问题是因为小米账号的问题,而不是作者软件的问题;自己在小米运动重新注册一下账号就ok了。

This problem is due to the mi account, not the author's software; Oneself re - register an account in millet movement is ok

@evan0625
Copy link
Author

哈,这个问题是因为小米账号的问题,而不是作者软件的问题;自己在小米运动重新注册一下账号就ok了。

This problem is due to the mi account, not the author's software; Oneself re - register an account in millet movement is ok

After following your suggestion, it succeeded. Thank you very much。

@radu022003
Copy link

哈,这个问题是因为小米账号的问题,而不是作者软件的问题;自己在小米运动重新注册一下账号就ok了。
This problem is due to the mi account, not the author's software; Oneself re - register an account in millet movement is ok

After following your suggestion, it succeeded. Thank you very much。

Can you please give more details on this? As I am having the same issue and I don't understand what account to re-register and where

@pointout
Copy link

pointout commented Jul 17, 2022

I also get the error:

File "D:\xxxxxxxx\huami-token\huami_token.py", line 116, in login
    raise ValueError(f"Login error. Error: {login_result['error_code']}")
    ValueError: Login error. Error: 0117

I try to get the token for a MiBand 5. I get this error for a new account as well as with an longer existing account with another freed MiBand5. Just tried this for checking, if the error depends on the new acount.
Can somebody explain what causes this error an what to do?
I do not understand this:

Oneself re - register an account in millet movement is ok

(Google is translating this with "register new to "xiaomi Sports"" - But there is no such app in the app store.)

The MiBand is paired with the Zepp life App.

@EstelZhao
Copy link

I also get the error:

File "D:\xxxxxxxx\huami-token\huami_token.py", line 116, in login
    raise ValueError(f"Login error. Error: {login_result['error_code']}")
    ValueError: Login error. Error: 0117

I try to get the token for a MiBand 5. I get this error for a new account as well as with an longer existing account with another freed MiBand5. Just tried this for checking, if the error depends on the new acount. Can somebody explain what causes this error an what to do? I do not understand this:

Oneself re - register an account in millet movement is ok

(Google is translating this with "register new to "xiaomi Sports"" - But there is no such app in the app store.)

The MiBand is paired with the Zepp life App.

you should sign in zeep life with your Xiaomi account, otherwise it will post error.

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

No branches or pull requests

6 participants