LibreLink Up cannot read properties / No AuthTicket
Hey everyone,
I successfully set up a Nightscout instance using Northflank, grabbing my Libre 3 data via Link-up. So far everything went good for a couple of days or even weeks and yesterday I noticed that during daytime the code suddenly generates a lot of errors and is unable to deliver constant measurements to Nightscout. Occasionally the generated errors stop and will report a measurement randomly. Later that day the code started to work perfectly fine again reporting consistently every minute. Today - same story again starting exactly at 7 am until 2:30 pm (German time). Since I am using Nightscout as CGM for my DIY Loop I would prefer to not have any bigger gaps in my measurements.
Did someone encounter a similar problem and if so, could please help me ?
2025-02-05T12:08:01.135359652Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-05T12:08:01.134812838Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-05T12:08:01.134375046Z stdout F [error]:
2025-02-05T12:08:00.626968579Z stdout F [info]: renew token
2025-02-05T12:07:01.083653034Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-05T12:07:01.083623318Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-05T12:07:01.083003903Z stdout F [error]:
2025-02-05T12:07:00.553558328Z stdout F [info]: renew token
2025-02-05T12:06:01.540017213Z stdout F [error]: Error getting glucose measurements Cannot read properties of undefined (reading 'data')
2025-02-05T12:06:01.539440938Z stdout F [error]:
2025-02-05T12:06:01.028022663Z stdout F [info]: -> The following connection will be used: Nick XXXXX (Patient-ID: XXXXXXXXXX)
2025-02-05T12:06:01.027976306Z stdout F [info]: Found 1 LibreLink Up connection.
2025-02-05T12:06:00.670418228Z stdout F [info]: Logged in to LibreLink Up
2025-02-05T12:06:00.476765124Z stdout F [info]: renew token
2025-02-05T12:05:00.917235737Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-05T12:05:00.917214757Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-05T12:05:00.916358062Z stdout F [error]:
2025-02-05T12:05:00.401776074Z stdout F [info]: renew token
2025-02-05T12:04:01.036480377Z stdout F [error]: getting libreLinkUpConnection: Cannot read properties of undefined (reading 'data')
2025-02-05T12:04:01.035403469Z stdout F [error]:
2025-02-05T12:04:00.525608806Z stdout F [info]: Logged in to LibreLink Up
2025-02-05T12:04:00.322262202Z stdout F [info]: renew token
2025-02-05T12:03:01.546799716Z stdout F [error]: Error getting glucose measurements Cannot read properties of undefined (reading 'data')
2025-02-05T12:03:01.546228965Z stdout F [error]:
2025-02-05T12:03:01.029257154Z stdout F [info]: -> The following connection will be used: Nick XXXXX (Patient-ID: XXXXXXXXXXX)
2025-02-05T12:03:01.029210016Z stdout F [info]: Found 1 LibreLink Up connection.
2025-02-05T12:03:00.68600636Z stdout F [info]: Logged in to LibreLink Up
2025-02-05T12:03:00.225337571Z stdout F [info]: renew token
2025-02-05T12:02:02.639752543Z stdout F [error]: getting libreLinkUpConnection: Cannot read properties of undefined (reading 'data')
2025-02-05T12:02:02.639108052Z stdout F [error]:
2025-02-05T12:01:01.626580403Z stdout F [info]: Upload of 2 measurements to Nightscout succeeded
2025-02-05T12:01:01.517720275Z stdout F [info]: Trying to upload 2 glucose measurement items to Nightscout
2025-02-05T12:01:01.265738827Z stdout F [info]: -> The following connection will be used: Nick XXXXXX (Patient-ID: XXXXXXXXXXX)
2025-02-05T12:01:01.265039576Z stdout F [info]: Found 1 LibreLink Up connection.
2025-02-05T12:01:01.168991636Z stdout F [info]: Logged in to LibreLink Up
2025-02-05T12:01:00.967520402Z stdout F [info]: renew token
2025-02-05T12:00:01.354373818Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-05T12:00:01.354338191Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-05T12:00:01.353436604Z stdout F [error]:
2025-02-05T12:00:00.838542318Z stdout F [info]: renew token
2025-02-05T11:59:01.283187212Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-05T11:59:01.28316454Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-05T11:59:01.282306719Z stdout F [error]:
I had the same problem from my northflank uploader. I was using a Libre account in several places. I created a new Libre follower account just for my northflank uploader and have been getting readings every minute for a few weeks now without interruption. Please reply if this helps.
What do you mean with a Libre account in several places ? I was playing around with my link up accounts yesterday too (note that they all forward to the same gmail account, by adding a + before the @). didn‘t help. Do you use completly different email providers ? I would habe to set up a new mail account then and give this a try.
Btw. It is a few minutes before 7am (german time) and it happens again (code below). When it starts, it even gives the message „ The owner of this website (api-de.libreview.io) has banned you temporarily from accessing this website“ and also something regarding cookies. Any ideas ?
2025-02-06T05:52:00.8258296Z stdout F [info]: renew token
2025-02-06T05:51:01.036673534Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-06T05:51:01.036661842Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-06T05:51:01.036603493Z stdout F [error]: "<!DOCTYPE html>\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 7]> <html class=\"no-js ie7 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 8]> <html class=\"no-js ie8 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en-US\"> <!--<![endif]-->\n<head>\n<title>Access denied | api-de.libreview.io used Cloudflare to restrict access</title>\n<meta charset=\"UTF-8\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />\n<meta name=\"robots\" content=\"noindex, nofollow\" />\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />\n<link rel=\"stylesheet\" id=\"cf_styles-css\" href=\"/cdn-cgi/styles/main.css\" />\n\n\n<script>\n(function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById(\"error-feedback-survey\"),d=document.getElementById(\"error-feedback-success\"),b=new XMLHttpRequest;a={event:\"feedback clicked\",properties:{errorCode:1015,helpful:a,version:1}};b.open(\"POST\",\"https://sparrow.cloudflare.com/api/v1/event\");b.setRequestHeader(\"Content-Type\",\"application/json\");b.setRequestHeader(\"Sparrow-Source-Key\",\"c771f0e4b54944bebf4261d44bd79a1e\");\nb.send(JSON.stringify(a));c.classList.add(\"feedback-hidden\");d.classList.remove(\"feedback-hidden\")};document.addEventListener(\"DOMContentLoaded\",function(){var a=document.getElementById(\"error-feedback\"),c=document.getElementById(\"feedback-button-yes\"),d=document.getElementById(\"feedback-button-no\");\"classList\"in a&&(a.classList.remove(\"feedback-hidden\"),c.addEventListener(\"click\",function(){e(!0)}),d.addEventListener(\"click\",function(){e(!1)}))})}})();\n</script>\n\n<script defer src=\"https://performance.radar.cloudflare.com/beacon.js\"></script>\n</head>\n<body>\n <div id=\"cf-wrapper\">\n <div class=\"cf-alert cf-alert-error cf-cookie-error hidden\" id=\"cookie-alert\" data-translate=\"enable_cookies\">Please enable cookies.</div>\n <div id=\"cf-error-details\" class=\"p-0\">\n <header class=\"mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-15 antialiased\">\n <h1 class=\"inline-block md:block mr-2 md:mb-2 font-light text-60 md:text-3xl text-black-dark leading-tight\">\n <span data-translate=\"error\">Error</span>\n <span>1015</span>\n </h1>\n <span class=\"inline-block md:block heading-ray-id font-mono text-15 lg:text-sm lg:leading-relaxed\">Ray ID: 90d8ddaf6bc2244e •</span>\n <span class=\"inline-block md:block heading-ray-id font-mono text-15 lg:text-sm lg:leading-relaxed\">2025-02-06 05:51:01 UTC</span>\n <h2 class=\"text-gray-600 leading-1.3 text-3xl lg:text-2xl font-light\">You are being rate limited</h2>\n </header>\n\n <section class=\"w-240 lg:w-full mx-auto mb-8 lg:px-8\">\n <div id=\"what-happened-section\" class=\"w-1/2 md:w-full\">\n <h2 class=\"text-3xl leading-tight font-normal mb-4 text-black-dark antialiased\" data-translate=\"what_happened\">What happened?</h2>\n <p>The owner of this website (api-de.libreview.io) has banned you temporarily from accessing this website.</p>\n \n </div>\n\n \n </section>\n\n <div class=\"feedback-hidden py-8 text-center\" id=\"error-feedback\">\n <div id=\"error-feedback-survey\" class=\"footer-line-wrapper\">\n Was this page helpful?\n <button class=\"border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded\" id=\"feedback-button-yes\" type=\"button\">Yes</button>\n <button class=\"border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded\" id=\"feedback-button-no\" type=\"button\">No</button>\n </div>\n <div class=\"feedback-success feedback-hidden\" id=\"error-feedback-success\">\n Thank you for your feedback!\n </div>\n</div>\n\n\n <div class=\"cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300\">\n <p class=\"text-13\">\n <span class=\"cf-footer-item sm:block sm:mb-1\">Cloudflare Ray ID: <strong class=\"font-semibold\">90d8ddaf6bc2244e</strong></span>\n <span class=\"cf-footer-separator sm:hidden\">•</span>\n <span id=\"cf-footer-item-ip\" class=\"cf-footer-item hidden sm:block sm:mb-1\">\n Your IP:\n <button type=\"button\" id=\"cf-footer-ip-reveal\" class=\"cf-footer-ip-reveal-btn\">Click to reveal</button>\n <span class=\"hidden\" id=\"cf-footer-ip\">20.56.254.100</span>\n <span class=\"cf-footer-separator sm:hidden\">•</span>\n </span>\n <span class=\"cf-footer-item sm:block sm:mb-1\"><span>Performance & security by</span> <a rel=\"noopener noreferrer\" href=\"https://www.cloudflare.com/5xx-error-landing\" id=\"brand_link\" target=\"_blank\">Cloudflare</a></span>\n \n </p>\n <script>(function(){function d(){var b=a.getElementById(\"cf-footer-item-ip\"),c=a.getElementById(\"cf-footer-ip-reveal\");b&&\"classList\"in b&&(b.classList.remove(\"hidden\"),c.addEventListener(\"click\",function(){c.classList.add(\"hidden\");a.getElementById(\"cf-footer-ip\").classList.remove(\"hidden\")}))}var a=document;document.addEventListener&&a.addEventListener(\"DOMContentLoaded\",d)})();</script>\n</div><!-- /.error-footer -->\n\n\n </div><!-- /#cf-error-details -->\n </div><!-- /#cf-wrapper -->\n\n <script>\n window._cf_translation = {};\n \n \n</script>\n\n</body>\n</html>\n"
2025-02-06T05:51:00.75139666Z stdout F [info]: renew token
2025-02-06T05:50:01.680466895Z stdout F [error]: getting libreLinkUpConnection: Cannot read properties of undefined (reading 'data')
2025-02-06T05:50:01.679852227Z stdout F [error]:
2025-02-06T05:50:01.158601241Z stdout F [info]: Logged in to LibreLink Up
2025-02-06T05:50:00.672660323Z stdout F [info]: renew token
2025-02-06T05:49:01.114412009Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-06T05:49:01.114382263Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-06T05:49:01.113740025Z stdout F [error]:
2025-02-06T05:49:00.599783218Z stdout F [info]: renew token
2025-02-06T05:48:01.244691821Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-06T05:48:01.244684127Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-06T05:48:01.244636638Z stdout F [error]:
2025-02-06T05:48:00.523401876Z stdout F [info]: renew token
2025-02-06T05:47:00.980954958Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-06T05:47:00.980927367Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-06T05:47:00.980442763Z stdout F [error]:
2025-02-06T05:47:00.452624536Z stdout F [info]: renew token
2025-02-06T05:46:01.186864886Z stdout F [error]: Error getting glucose measurements Cannot read properties of undefined (reading 'data')
2025-02-06T05:46:01.186516144Z stdout F [error]:
2025-02-06T05:46:00.678095917Z stdout F [info]: -> The following connection will be used: Nick Schellig (Patient-ID: 147ac343-c29c-11e9-aa6b-0242ac11000d)
2025-02-06T05:46:00.678050021Z stdout F [info]: Found 1 LibreLink Up connection.
2025-02-06T05:46:00.574209334Z stdout F [info]: Logged in to LibreLink Up
2025-02-06T05:46:00.382974823Z stdout F [info]: renew token
2025-02-06T05:45:00.837159845Z stdout F [error]: LibreLink Up - No AuthTicket received. Please check your credentials.
2025-02-06T05:45:00.837124619Z stdout F [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status')
2025-02-06T05:45:00.836471766Z stdout F [error]:
2025-02-06T05:45:00.307921999Z stdout F [info]: renew token
2025-02-06T05:44:00.743831685Z stdout F [error]: getting libreLinkUpConnection: Cannot read properties of undefined (reading 'data')
2025-02-06T05:44:00.743385098Z stdout F [error]:
2025-02-06T05:43:00.421088696Z stdout F [info]: Upload of 1 measurements to Nightscout succeeded
2025-02-06T05:43:00.401403705Z stdout F [info]: Trying to upload 1 glucose measurement items to Nightscout
2025-02-06T05:43:00.231490617Z stdout F [info]: -> The following connection will be used: Nick XXX (Patient-ID: XXX)
2025-02-06T05:43:00.231454549Z stdout F [info]: Found 1 LibreLink Up connection.
2025-02-06T05:42:00.411958195Z stdout F [info]: Upload of 1 measurements to Nightscout succeeded
2025-02-06T05:42:00.303440853Z stdout F [info]: Trying to upload 1 glucose measurement items to Nightscout
2025-02-06T05:42:00.146303788Z stdout F [info]: -> The following connection will be used: Nick XXX (Patient-ID: XXX)
2025-02-06T05:42:00.146261629Z stdout F [info]: Found 1 LibreLink Up connection.
2025-02-06T05:41:01.817222576Z stdout F [info]: Upload of 1 measurements to Nightscout succeeded
2025-02-06T05:41:01.513240853Z stdout F [info]: Trying to upload 1 glucose measurement items to Nightscout
I mean for LibreLinkUp follower account. I created a new gmail account just for this but it may not be your problem. You show they are banning you so I don't know. Maybe every minute is too fast in Germany. I'm in the US.
I tried to reduce the interval to 5min, but this doesn´t seem to fix the problem. I don´t think this is an issue since over night or at several hours during the day everything works fine with 1min interval. I was trying to setup a second northflank account running the linkup service, but with server region in US. By the Log-files I see it is working fine, but I don't receive any values in my Nightscout (running on EU server with public setting). Is it possible to run 2 linkup services in 2 northflank account - one on US servers and on in Europe to upload to one Nightscout ? I was thinking of one as a backup if there are errors again.
Somehow I am unable to set this up.
Hi NickMcCrank. I have similar issues. I have Nightscout and LibreLikedUp on Northflank since august 2023. I had problems but usually they dissappeared when i updated or restarted LibrLinkeUp service. About a month ago the usual routine did not work anymore. So, as a temporary workaround i set up my iphone with xdrip4ios (Shuggah in app-store, xdrip4ios is TestFlight name) to fetch and upload my sons libre values to Nightscout. It's heavy on the phone battery but it works.
I face the same issue with a Northflank setup. As a backup I run it local on my laptop, for some reason there it always works even if the interval is every minute. With Nortflank i face almost every morning issues, and most of the time it starts working again after about an hour
@wheldens @NickMcCrank @Zurnl I had similar issues on Northflank as well. Have you reached out to their support? The few times I reached out, they were very helpful and responsive - in al cases it turned out to be due to an overloaded free tier server.
I've upgraded to paid almost a week ago, and I haven't missed a minute since, using FSL2 and Android. It's worth the upgrade imo. Still, you will get support also on free tier, just reach out.
@robster7674 I also upgraded to paid plan. Since then it runs smooth every minute. Thanks for the tip!
Thanks for your comments- feels better to not be alone on this one. I set up my whole nightscout and Linkup on the free Northflank US-server in parallel. I haven‘t faced an issue since (tbh the EU-West Server ran smoothly too). Maybe traffic is less on weekends ?
My initial idea was to have a linkup instance running on a different server and to upload to the same nightscout instance as backup. I was unable to write to nightscout from outside the northflank project. Do you guys know how to do that. I tried to make the service publicly available, but still there is no data apearing.
I'm curious how much you are paying. I have not had a problem uploaded every minute but I am only running the uploader in northflank. My Nightscout is in nightscout4u also free at this time.
@NickMcCrank I ran the linkup instance from my laptop in docker for a while, connecting it to Nightscout in Northflank, that worked just fine. When you say "I tried to make the service publicly available", what did you try and what was the result? Any error?
And yes, there are certainly periods of high and low load on the servers. I'm on EU as well, and this was noticeable on a few occasions, which eventually made me move to paid tier.
@mstry9 estimate is somewhere between 10-15 USD/month based on the current setup of both Nightscout and LibreLinkUp in Northflank. A large chunk is MongoDB, but they don't provide lighter-weight dbs (yet). It would be nice if there is an option to share a MongoDB instance. ;)
Thanks for the info. I'm just using northflank as an uploader and my Nightscout is for data repository and really just fun for me. I think if I were going to pay I would choose a Nightscout service where they also do the uploading. I know a few that do it for around 5 dollars a month. Glad this is working for you 😀