Skip to content

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