-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running get_devices.py #34
Comments
+1. For me, the error is about the
|
@shenxn I get the same error as @tkm5, for the past few days that I tried this... basically the Dyson server is giving a HTTP response code 401 "Unauthorized"... @shadyabhi have you imported the "attrs" module? If this is the problem, you will be able to get to the other error above [tkm5] I think! |
I'm pretty sure it used to work earlier because that's how I got the Dyson password the first time I set it up a few months ago. |
Ok, I mentioned it because the error seemed related to the attrs module, and that it is specifically required in the "requirements.txt" file that we're instructed to import first. |
Log out off the MyDyson app and try again, it solved the problem for me. |
This solved the issue for me! Thanks mjtweb! |
Error when running get_devices.py
What should I do?
Error log
$ python3 get_devices.py
Please choose your account region
1: Mainland China
2: Rest of the World
Region [1/2]: 2
Region code: JP
Email: [email protected]
Traceback (most recent call last):
File "/home/takumig/libdyson/get_devices.py", line 22, in
verify = account.login_email_otp(email, region)
File "/home/takumig/libdyson/libdyson/cloud/account.py", line 122, in login_email_otp
response = self.request(
File "/home/takumig/libdyson/libdyson/cloud/account.py", line 114, in request
raise DysonInvalidAuth
libdyson.exceptions.DysonInvalidAuth
The text was updated successfully, but these errors were encountered: