GithubHelp home page GithubHelp logo

Comments (5)

timoschlueter avatar timoschlueter commented on May 27, 2024

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.

dassystem avatar dassystem commented on May 27, 2024

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.

timoschlueter avatar timoschlueter commented on May 27, 2024

@dassystem is this still an issue with the latest version? I added a few improvements to the error handling.

from nightscout-librelink-up.

dassystem avatar dassystem commented on May 27, 2024

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.

timoschlueter avatar timoschlueter commented on May 27, 2024

awesome! :)

from nightscout-librelink-up.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.