timoschlueter / nightscout-librelink-up

Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout.
MIT License
189 stars 246 forks source link

New problem? #129

Closed DasBlueFox closed 3 months ago

DasBlueFox commented 3 months ago

Hi! I have been using your api relatively hassle free. Until about two days ago when I noticed there was a bigger gap between the uploads than usual and upon further inspection I see this message on the Heruko console.

[error]: "<!DOCTYPE html>\n\n\n\n <html class=\"no-js\" lang=\"en-US\"> \n\nAttention Required! | Cloudflare\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/cf.errors.css\" />\n\n\n\n\n\n\n\n\n\n\n\n <div id=\"cf-wrapper\">\n <div class=\"cf-alert cf-alert-error cf-cookie-error\" id=\"cookie-alert\" data-translate=\"enable_cookies\">Please enable cookies.

\n <div id=\"cf-error-details\" class=\"cf-error-details-wrapper\">\n <div class=\"cf-wrapper cf-header cf-error-overview\">\n <h1 data-translate=\"block_headline\">Sorry, you have been blocked\n <h2 class=\"cf-subheadline\"><span data-translate=\"unable_to_access\">You are unable to access libreview.io\n
\n\n <div class=\"cf-section cf-highlight\">\n <div class=\"cf-wrapper\">\n <div class=\"cf-screenshot-container cf-screenshot-full\">\n \n <span class=\"cf-no-screenshot error\">\n \n \n \n \n\n <div class=\"cf-section cf-wrapper\">\n <div class=\"cf-columns two\">\n <div class=\"cf-column\">\n <h2 data-translate=\"blocked_why_headline\">Why have I been blocked?\n\n <p data-translate=\"blocked_why_detail\">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

\n \n\n <div class=\"cf-column\">\n <h2 data-translate=\"blocked_resolve_headline\">What can I do to resolve this?\n\n <p data-translate=\"blocked_resolve_detail\">You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

\n \n \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\">\n <span class=\"cf-footer-separator sm:hidden\">•\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\n <span class=\"hidden\" id=\"cf-footer-ip\">\n <span class=\"cf-footer-separator sm:hidden\">•\n \n <span class=\"cf-footer-item sm:block sm:mb-1\">Performance & security by <a rel=\"noopener noreferrer\" href=\"https://www.cloudflare.com/5xx-error-landing\" id=\"brand_link\" target=\"_blank\">Cloudflare\n \n

\n \n\n\n\n \n \n\n \n\n\n\n" 2024-03-30T05:19:01.685131+00:00 app[worker.1]: [error]: Invalid authentication token. Please check your LibreLink Up credentials Cannot read properties of undefined (reading 'status') 2024-03-30T05:19:01.685185+00:00 app[worker.1]: [error]: LibreLink Up - No AuthTicket received. Please check your credentials.

I first thought it would help renewing my credentials and so I did. And it dot not work. I even made a new linkup account and that did not work either. So my guess is that’s all about the cloud flare system restricting me from have a connection between everything. Thanks beforehand for any help!

AndyLow91 commented 3 months ago

This appears to be the same as #128

DasBlueFox commented 3 months ago

This appears to be the same as #128

Hmmm… yeah you’re right. Although I don’t quite understand where to implement the code that is provided within the solution. And how to implement that on heroku as well. It’s safe to say that I’m not very experienced about this 😅 Once again thanks for any help!

timoschlueter commented 3 months ago

Duplicate of #128. Closing this issue since discussions are ongoing in #128.