Skip to content
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

libdyson.exceptions.DysonServerError #41

Open
virusman opened this issue Sep 21, 2023 · 3 comments
Open

libdyson.exceptions.DysonServerError #41

virusman opened this issue Sep 21, 2023 · 3 comments

Comments

@virusman
Copy link

virusman commented Sep 21, 2023

get_devices.py consistently returns an error for me. Initially it was returning libdyson.exceptions.DysonInvalidAuth, then I logged out of the app, and now it returns libdyson.exceptions.DysonServerError all the time.

Log

Please choose your account region
1: Mainland China
2: Rest of the World
Region [1/2]: 2
Region code: US
Email: ...
Traceback (most recent call last):
  File "/Users/virusman/Private/code/python/libdyson/get_devices.py", line 22, in <module>
    verify = account.login_email_otp(email, region)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/virusman/Private/code/python/libdyson/libdyson/cloud/account.py", line 122, in login_email_otp
    response = self.request(
               ^^^^^^^^^^^^^
  File "/Users/virusman/Private/code/python/libdyson/libdyson/cloud/account.py", line 116, in request
    raise DysonServerError
libdyson.exceptions.DysonServerError
@virusman
Copy link
Author

virusman commented Sep 21, 2023

I also can't login via the app anymore after signing out. Logging in to the website works.

@Henry4234
Copy link

same here.
is anything wrong in dyson server?

@dotvezz
Copy link

dotvezz commented Jan 10, 2024

@Henry4234 @virusman: This is most likely related to a login bug that was resolved in https://github.com/libdyson-wg/libdyson-neon, which is a continuation of this project which fixes some bugs and adds small improvements.

If you're using this with Home Assistant, you can use https://github.com/libdyson-wg/ha-dyson, a continuation of the counterpart Home Assistant integrations which incorporates both the cloud and local parts, and also incorporates the libdyson fixes.

If you have any questions, feel free to let me know; I'm the core maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants