Comments (4)
hi @convay89, I will take a look at this. Thanks for pointing it out.
from nightscout-librelink-up.
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.
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.
This should be fixed in version 1.6.2 :)
from nightscout-librelink-up.
Related Issues (20)
- Add config options for http/https and TCP-Port HOT 1
- [error]: No LibreLink Up connection found HOT 3
- Nighscout Port 443/80 HOT 5
- Upload to NightScout failed HOT 13
- last glucose dosnt read HOT 1
- Back-filling missed data HOT 10
- Plan B to Heroku HOT 4
- No data in Nightscout?
- Calendar Events HOT 1
- High delta HOT 2
- Stuck at LibreLink Up HOT 11
- connection problems HOT 3
- [error]: {"message":"invalid or expired jwt"} HOT 13
- Process exited with status 0 HOT 3
- Azure instead of Heroku HOT 1
- Error fetching the last entry date - TypeError: response.data.pop is not a function HOT 3
- Change country HOT 1
- Libre LinkUp maintenance/update breaks app connection. HOT 1
- integrate with Nightscout core HOT 1
- TypeError: Cannot read properties of null (reading 'FactoryTimestamp') HOT 7
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.