c99koder / personal-influxdb

Import data from various APIs into InfluxDB
Apache License 2.0
263 stars 36 forks source link

Librelink authentication not working anymore #34

Open mammuth opened 2 hours ago

mammuth commented 2 hours ago

I have been running the librelink sync occasionally over the last couple of years and it always worked flawlessly.

All of a sudden, I started receiving the following error responses (since 2024-11-15 12:03:03):

2024-11-26 15:23:02,093 Connecting to 192.168.178.20:8086
2024-11-26 15:23:02,115 Using cached authTicket, expiration: 2024-12-11T11:42:59
2024-11-26 15:23:02,303 HTTP request failed: 403 Client Error: Forbidden for url: https://api-de.libreview.io/llu/connections

Does Anyone see something similar or have an idea how to troubleshoot it? 🤔

My config

LIBRELINKUP_USERNAME = 'redacted'
LIBRELINKUP_PASSWORD = "redacted"
LIBRELINKUP_DATABASE = 'glucose'
LIBRELINKUP_URL = 'https://api-de.libreview.io'
LIBRELINKUP_VERSION = '4.7.0'
LIBRELINKUP_PRODUCT = 'llu.ios'

What I already tried

mammuth commented 1 hour ago

Unrelated but injecting it since this ticket is already about Librelink connection issues: This comment shows that we'd need additional header changes if we have to go to LLU > 4.11 at some point.

mammuth commented 1 hour ago

Using the official webapp at https://www.libreview.com shows that they're also still using api-de.libreview.io, so it might be an issue related to headers? 🤔

image
c99koder commented 1 hour ago

I will look into adding the additional headers soon, thanks for letting me know about the change to the API