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

Minimum LibreLinkUp version #167

Closed
dc00l opened this issue Nov 15, 2024 · 9 comments
Closed

Minimum LibreLinkUp version #167

dc00l opened this issue Nov 15, 2024 · 9 comments

Comments

@dc00l
Copy link

dc00l commented Nov 15, 2024

Abbott seems to raised the minimum for Libre LinkUp to 4.12. Since the string is hardcoded in index.ts could you please update it?

@vanzaam
Copy link

vanzaam commented Nov 15, 2024

if only change version in the index.ts to 4.12.0 - :

[error]: {"message":"RequiredHeaderMissing"}
[error]: getting libreLinkUpConnection:  Cannot read properties of undefined (reading 'data')

@timoschlueter
Copy link
Owner

Looks like Abbott has added some checks to their endpoints. I guess i have to re-analyse the app traffic again.
Unfortunately, I wont be able to do so until this evening.

@chucker
Copy link

chucker commented Nov 15, 2024

Haven't looked into it much, but it seems the official app now sets an Account-Id header (which looks like a SHA256?). Looks like #155 already prepares that?

(edit) Yep, looks like it works if you bump the version and set the header.

@dc00l
Copy link
Author

dc00l commented Nov 15, 2024

Account-Id is correct. Was not just SHA256 of the user, but did not dig into it. I had to get the loop up and running and hardcoded the Account-Id from the libreview login. Now it works. Will have a look later.

@timoschlueter
Copy link
Owner

Fixed in Version 2.7.2.
Enjoy :)

@dc00l
Copy link
Author

dc00l commented Nov 15, 2024

Works, great, Have a brilliant weekend.

@dc00l dc00l closed this as completed Nov 15, 2024
@melwaraki
Copy link

I wish I saw this post before pulling at my hair for hours and finally fixing it in my app 😂

@HackyPaddy
Copy link

Wow!
You are great! An extremely quick fix.

Thanks alot!

@miguefl
Copy link

miguefl commented Dec 19, 2024

It's happening to me running the version 2.7.3

#176

more logs:

[email protected] start /home/user/nightscout-librelink-up
> npx ts-node --transpile-only src/index.ts

[info]: Starting cron schedule: */2 * * * *
[info]: renew token
[info]: Logged in to LibreLink Up
[error]: Error getting accountId:  Invalid token specified: invalid base64 for part #2 (atob is not defined)
[error]: {"message":"RequiredHeaderMissing"}
[error]: getting libreLinkUpConnection:  Cannot read property 'data' of undefined
[info]: renew token
[info]: Logged in to LibreLink Up
[error]: Error getting accountId:  Invalid token specified: invalid base64 for part #2 (atob is not defined)
[error]: {"message":"RequiredHeaderMissing"}
[error]: getting libreLinkUpConnection:  Cannot read property 'data' of undefined
[info]: renew token
[info]: Logged in to LibreLink Up
[error]: Error getting accountId:  Invalid token specified: invalid base64 for part #2 (atob is not defined)
[error]: {"message":"RequiredHeaderMissing"}
[error]: getting libreLinkUpConnection:  Cannot read property 'data' of undefined
[info]: renew token
[info]: Logged in to LibreLink Up
[error]: Error getting accountId:  Invalid token specified: invalid base64 for part #2 (atob is not defined)
[error]: {"message":"RequiredHeaderMissing"}
[error]: getting libreLinkUpConnection:  Cannot read property 'data' of undefined

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

7 participants