GithubHelp home page GithubHelp logo

Comments (4)

timoschlueter avatar timoschlueter commented on May 27, 2024

hi @convay89, I will take a look at this. Thanks for pointing it out.

from nightscout-librelink-up.

1spammer avatar 1spammer commented on May 27, 2024

Same error here, i think i'm Missing Something.
Did a fresh Nightscout Setup via heroku.
Nightscout is up and running. Are there some Variables I forgot to set in Nightscout?

2022-05-02T19:37:33.144318+00:00 app[worker.1]: [info]: Starting cron schedule: */1 * * * *
2022-05-02T19:38:00.463465+00:00 app[worker.1]: [info]: Logged in to LibreLink Up
2022-05-02T19:38:00.684776+00:00 app[worker.1]: [info]: Found 1 LibreLink Up connection.
2022-05-02T19:38:00.685117+00:00 app[worker.1]: [info]: -> The following connection will be used: xxxxx (Patient-ID: xxxx-xxx-xxxx-xxxx-xxxx)
2022-05-02T19:38:00.189910+00:00 app[worker.1]: [info]: no authTicket.expires
2022-05-02T19:38:00.190143+00:00 app[worker.1]: [info]: renew token
2022-05-02T19:38:01.100264+00:00 app[worker.1]: [info]: Received blood glucose measurement items
2022-05-02T19:38:01.167682+00:00 app[worker.1]: [error]: Error getting glucose measurements Cannot read properties of undefined (reading 'dateString')

from nightscout-librelink-up.

blooolb avatar blooolb commented on May 27, 2024

The Problem is the empty Nightscout API response on new installations. The code expects at least a single returned entry to determine the timestamp the last entry. The code is missing a simple check whether any results were returned before trying to access them in line index.js#L188

return new Date(response.data.pop().dateString);

from nightscout-librelink-up.

timoschlueter avatar timoschlueter commented on May 27, 2024

This should be fixed in version 1.6.2 :)

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.