Comments (5)
hi @dassystem, can you make sure you have current measurements in the LibreLink Up app? i have not come across this issue myself yet. :(
from nightscout-librelink-up.
Whether the application has fresh data from a client or not, the server should not crash. Not having data could have several reasons: A fresh setup, missing internet connection of the uploader, issues on the side of Abbots official servers… In these cases, certainly not the whole application should break.
Unfortunately I don't know javascript very well, but I assume that we need to check for null values when loading it to the variable in index.js line 186.
const measurementDate = getUtcDateFromString(glucoseMeasurement.FactoryTimestamp);
An additional try catch might solve it. Happy to test it.
from nightscout-librelink-up.
@dassystem is this still an issue with the latest version? I added a few improvements to the error handling.
from nightscout-librelink-up.
Hey @timoschlueter, thanks for the mention!
I'm now getting a error message in the log (which is correct!) and the application is not crashing anymore (which is even better!)
nightscout-libre-link | 2022-06-14T13:11:48.104457492Z > [email protected] start
nightscout-libre-link | 2022-06-14T13:11:48.104477066Z > node index.js
nightscout-libre-link | 2022-06-14T13:20:00.425171582Z [info]: no authTicket.expires
nightscout-libre-link | 2022-06-14T13:20:00.425530543Z [info]: renew token
nightscout-libre-link | 2022-06-14T13:20:00.760973318Z [info]: Logged in to LibreLink Up
nightscout-libre-link | 2022-06-14T13:20:00.954207820Z [info]: Found 1 LibreLink Up connection.
nightscout-libre-link | 2022-06-14T13:20:00.955213701Z [info]: -> The following connection will be used: <MY-NAME> (Patient-ID: <MY-UUID>)
nightscout-libre-link | 2022-06-14T13:20:01.130118050Z [info]: Received blood glucose measurement items
nightscout-libre-link | 2022-06-14T13:20:01.132070664Z [error]: Error getting glucose measurements Cannot read properties of null (reading 'FactoryTimestamp')
So at least this unhappy-path is working as expected and this bug issue can be closed. Thank you!
from nightscout-librelink-up.
awesome! :)
from nightscout-librelink-up.
Related Issues (20)
- New EULAs required (region DE) HOT 4
- Better documentation for NIGHTSCOUT_API_TOKEN
- not workin for me.. HOT 1
- Data not export to Nightscout HOT 1
- Local installation only works with non-hashed access token HOT 1
- Old Data in LibreLinkUp | [info]: No new measurements to upload HOT 4
- OpenSSL Error on Upload Attempt HOT 7
- Add link to Read.me to help convert SHA1
- New Error HOT 1
- API error
- Problem with build docker image HOT 1
- Nightscout API v3 HOT 1
- Script running once then crashing HOT 1
- TypeError: response.data.pop is not a function HOT 1
- can I set this up for free???? HOT 4
- for local use [non domain] setup
- How do I know if its working or properly installed ? No data after 20 minutes ! HOT 2
- You have been blocked?.. Then - Error(`failed to get last entry) HOT 39
- New problem? HOT 3
- LibreLink Password update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightscout-librelink-up.