timoschlueter / nightscout-librelink-up

Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout.
MIT License
210 stars 259 forks source link

Error getting LibreLinkUp reading #58

Closed xsen84 closed 1 year ago

xsen84 commented 2 years ago

After some update on libre link servers that happened on August 3 i am getting the error bellow once very 2-3 readings:

` 2022-08-03T13:52:00.501607+00:00 app[worker.1]: [info]: Found 1 LibreLink Up connection. 2022-08-03T13:52:00.501662+00:00 app[worker.1]: [info]: -> The following connection will be used: Alexandru Mihai (Patient-ID: XXX) 2022-08-03T13:52:00.674858+00:00 app[worker.1]: [info]: Received blood glucose measurement items

2022-08-03T13:52:31.138367+00:00 app[worker.1]: [error]: "<!DOCTYPE html>\n\t\n\t \n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<meta charset=\"utf-8\">\n\t\tApplication Error\n\t\t<style media=\"screen\">\n\t\t html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t }\n\t\t html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t }\n\t\t iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t }\n\t\t\n\t \n\t \n\t\t<iframe src=\"//www.herokucdn.com/error-pages/application-error.html\">\n\t \n\t" 2022-08-03T13:52:31.138397+00:00 app[worker.1]: [info]: Upload of 0 measurements to NightScout succeeded

2022-08-03T13:53:00.576644+00:00 app[worker.1]: [info]: Found 1 LibreLink Up connection. 2022-08-03T13:53:00.576785+00:00 app[worker.1]: [info]: -> The following connection will be used: Alexandru Mihai (Patient-ID: XXX) 2022-08-03T13:53:00.742464+00:00 app[worker.1]: [info]: Received blood glucose measurement items 2022-08-03T13:53:01.280426+00:00 app[worker.1]: [info]: Upload of 1 measurements to NightScout succeeded `

timoschlueter commented 2 years ago

I think this problem is caused whenever this app tries to upload measurements to Nightscout which are in fact empty. We need to make sure that we are only uploading to Nightscout when there are actual measurements. You can see that right below the cryptic HTML error message, there is this message:

Upload of 0 measurements to NightScout succeeded

This is missleading and we need to address this. As of why there are no measurements in the first place thats on Abbotts side unfortunately and nothing we can address here with this application :(

I will improve the error handling in one of the next releases though.

timoschlueter commented 2 years ago

I improved the error handling in version 1.9.0. Could you check if this is still an issue?