Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

blocked from libreview.io #5

Open
tompusey opened this issue Mar 30, 2024 · 7 comments
Open

blocked from libreview.io #5

tompusey opened this issue Mar 30, 2024 · 7 comments

Comments

@tompusey
Copy link

I've been using everything fine up until recently. I have an esp32 that uses an e-ink screen to get my blood glucose to display it every 10 minutes. Within the last couple of days it's stopped working and by testing what happens when it runs, I've discovered the following message from submitting a request to the API.

Sorry, you have been blocked
You are unable to access libreview.io

Any tips on getting myself unblocked?

@FokkeZB
Copy link
Owner

FokkeZB commented Mar 30, 2024

@tompusey o wow, I don't hope they started blocking accounts that try to use their private API 😨

Did this also break LibreLinkup for you?

@tompusey
Copy link
Author

Libre linkup works fine on my mobile (both on mobile data and on WiFi) and XDrip on my mobile, which uses a web follower (I'm guessing that uses the same or similar API? Not sure about that one) still works. Just the ESP32 and my laptop when I try using the API through https://libreview-unofficial.stoplight.io both throw up this error

@FokkeZB
Copy link
Owner

FokkeZB commented Mar 30, 2024

@tompusey one thing that could cause this may be the version header. That should match the version of the LibreLinkUp app you are using, or else at some point they will stop allowing the version to make request. Could you try bumping that?

@tompusey
Copy link
Author

Tried going from 4.7 to what my phone has (4.9) and I'm still getting the same thing
image

@AshCusack
Copy link

Potential Fix: Spent an hour or so tracking this down, sending a string for the "User-Agent" in the header has fixed this for me.
I'm using PHP and CURL, this is what i've got (excluding tokens etc.)
CURLOPT_HTTPHEADER => array( 'product: llu.android', 'version: 4.9', 'authorization: Bearer XXX', 'Cookie: XXX', 'User-Agent: Testing' ),

@FokkeZB
Copy link
Owner

FokkeZB commented Apr 9, 2024

Thanks @AshCusack - so it seems User-Agent is now required.

I'll see if I can make time to work that into the docs.

@tompusey
Copy link
Author

Thanks @AshCusack and @FokkeZB, added the user agent bit to my esp32/e-ink thing and it's back up and running as before.

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

No branches or pull requests

3 participants