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

Heroku Error reading data: "Cannot read properties of undefined (reading 'data')" / Minimum Version : 4.12.0 #175

Closed
miwinkler opened this issue Nov 25, 2024 · 2 comments

Comments

@miwinkler
Copy link

after working perfectly for months, i suddenly have trouble reading data from the libre site.

I have the app running on heroku, already restarted all dynos multiple times, but no difference.

2024-11-25T21:35:00.847218+00:00 app[worker.1]: [info]: renew token

2024-11-25T21:35:01.155961+00:00 app[worker.1]: [info]: Logged in to LibreLink Up

2024-11-25T21:35:01.156183+00:00 app[worker.1]: [debug]: authenticatedHttpHeaders: {"User-Agent":"FreeStyle LibreLink Up NightScout Uploader","Content-Type":"application/json","version":"4.7.0","product":"llu.ios","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Pragma":"no-cache","Cache-Control":"no-cache","Authorization":"Bearer tokendataliebernichtinsnetzdaherschnippschnapp"}

2024-11-25T21:35:01.210803+00:00 app[worker.1]: [error]: {"data":{"minimumVersion":"4.12.0"},"status":920}

2024-11-25T21:35:01.211467+00:00 app[worker.1]: [error]: getting libreLinkUpConnection: Cannot read properties of undefined (reading 'data')

I then tried to just set up another instance, but (even after configuring the env-variables prior) i get the error:

No app.json located in the repo URL provided.

I tried the usual stuff (checking for ToS Update, restart). Am i missing something?

Thanks you all for you effort <3

@NoTunaToday
Copy link

The reason it suddenly stopped working is that you're using an outdated version of the Uplink image. You need to run a newer version – the current one is [email protected] – which includes the correct version required by the server. The requests send a version number defined in line 87 of the index.ts file, which you could manually adjust, but there's no guarantee it will work properly. Upgrading to the latest version is the better solution. Can you update your old instance?

The second problem seems to be caused by a faulty setting – but I'm not very familiar with Heroku, so I can't provide specific instructions. Have you referred to a manual or guide for setting up the second instance?

@miwinkler
Copy link
Author

Thanks for pushing me to the right direction. Tbh i was not that into Heroku aswell and just deployed it in 2023 without thinking about updates. It just worked back then :)

Well.. lesson learned: i now redeployed it in heroku with the current version and it now works again.

Thanks again!

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

2 participants