Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EU login 1: MiniMed Connect error: Error: Request failed with status code 504 #44

Open
sirKitKat opened this issue Aug 17, 2023 · 3 comments

Comments

@sirKitKat
Copy link

It looks like the url for login is not in use anymore, someone has an idea how to debug/alter the code to get this working again?
https://carelink.minimed.eu/patient/sso/login?country=gb&lang=en

@nfontan
Copy link

nfontan commented Aug 18, 2023

Same here!
Carelink for windows works
https://github.com/paul1956/CareLink

I see that Paul added a change in the way the login is done

New in 3.8.5.0
Improve login logic for new CareLink servers including fix for EU Security upgrades

Maybe, someone can interpret your code

https://github.com/paul1956/CareLink/blob/ec96492b63c4095e928b3f24b30749fa6cd4af07/src/CareLink/CareLinkCommunications/CareLinkClient.vb#L321
@paul1956

@paul1956
Copy link

There are multiple changes the one that fixed the last issue is updating UserAgent Header see below. Even with this change some have reported that on initial login 1 out of 3 tries fail but with Gateway Timeout error. After initial login I and other working implementations retry failures not caused by user/password errors. Since my program is interactive, I don't currently retry Gateway timeout.

{"User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"},

@tobiasknudsen
Copy link

There might be some rate limiting going on that is based on the User-Agent, since the response is 502 Too Many Connections Requests in 10 minutes. It works for me to change the User-Agent here

I made a PR here that should fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants