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

LibreLinkUp: add logging when server region is incorrect #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mammuth
Copy link
Contributor

@mammuth mammuth commented Dec 17, 2023

Apparently, the LibreLinkUp API has many regions and accounts are expected to use their region-specific API. In such a case, all other regions return a redirect.

Example log output:

2023-12-17 11:37:08,662 Connecting to 192.168.178.20:8086
2023-12-17 11:37:08,692 Auth ticket not found or expired, requesting a new one
2023-12-17 11:37:09,888 Authentication failed. Server response:
2023-12-17 11:37:09,890 {'status': 0, 'data': {'redirect': True, 'region': 'de'}}
2023-12-17 11:37:09,891 The LibreLinkUp API returned a redirect. You should try the following url for LIBRELINKUP_URL in config.py: https://api-de.libreview.io

Apparently, the LibreLinkUp API has many regions and accounts are expected to use their region-specific API. In such a case, all other regions return a redirect.
@mammuth mammuth changed the title librelinkup: add logging when server region is incorrect LibreLinkUp: add logging when server region is incorrect Dec 17, 2023
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

Successfully merging this pull request may close these issues.

1 participant