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

Carelink login not working with xdrip #2823

Closed
Navid200 opened this issue May 9, 2023 Discussed in #2821 · 13 comments
Closed

Carelink login not working with xdrip #2823

Navid200 opened this issue May 9, 2023 Discussed in #2821 · 13 comments

Comments

@Navid200
Copy link
Collaborator

Navid200 commented May 9, 2023

Discussed in #2821

Originally posted by iwascu May 8, 2023
the carelink server only works with medtronic applications. xdrip can no longer connect to the server. do you have the same problem? (server is carelink.minimed.eu)

@cagito
Copy link

cagito commented May 24, 2023

Same problem.

  1. I changed username and password. but same problem.
  2. Old XDrip+ version and new version. same problem. 400 error
  3. Working well in "CareLink Connect" App with same username and password(Korea).

XDrip+ Error Message
"CareLink download error! Response code:400"

Help me.

image

@Navid200
Copy link
Collaborator Author

@cagito
Would you please use the patient account instead of the care partner account?
That should fix it for now.
@benceszasz can open a PR to address this in a different way hopefully soon.

@DanielFinestrat
Copy link

@Navid200 Hey there, I'm having the same 400 download error when using my care partner account (Spain). I've changed my settings to use my patient account but apparently I'm getting a nullptr error when using that account. Any idea what I may be doing wrong?

Screenshot_2023-05-25-16-17-18-33_2dd2c1bcb8f659cd696bcba2072f751b

@Navid200
Copy link
Collaborator Author

@DanielFinestrat Do you have two-factor authentication enabled on the patient account?
If yes, that may be the cause of the problem.

@benceszasz needs time to create a fix. When he does that, this problem will be completely addressed.

@DanielFinestrat
Copy link

@Navid200 no 2FA here! I did not realize a fix was being worked on, no pressure at all! Thanks for the hard work!

@sedy89
Copy link

sedy89 commented May 25, 2023

carelink now requries the information about the patient.

Previously the content of the payload was the username and the role,

05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144481 | Request URL: POST: https://clcloud.minimed.eu//connect/carepartner/v6/display/message?{} 05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144704 | Request Headers: {Accept: application/json, Content-Type: application/json} 05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144770 | Request Payload: {"username":this_is_my_carelink_acc,"role":"carepartner"} 05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144832 | Public: false

but after the update the payload got extended by the patient.

05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144481 | Request URL: POST: https://clcloud.minimed.eu//connect/carepartner/v6/display/message?{} 05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144704 | Request Headers: {Accept: application/json, Content-Type: application/json} 05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144770 | Request Payload: {"username":this_is_my_carelink_user,"role":"carepartner","patientId":patient_user_name} 05-25 18:18:02.144 9788 21467 I flutter : | OAuth | D | 2023-05-25 18:18:02.144832 | Public: false
grafik

I tested this change in the carelink python api and I got the restuls back.
Xdrip requires an option to select/set the patient in the settings and the payload of the request needs to get updated.

I got the log by using "adb logcat | findstr flutter " and opening the carelink app until it updated the values.

@benceszasz
Copy link
Contributor

@sedy89 I am already working on it. The BLE endpoint API change still only works with 7xxG pumps, but this change also affects standalone CGM users. For them there is a new API when using care partner account, which must be also implemented:
GET /patient/m2m/connect/data/gc/patients/$patientUsername
For patient accounts the old API is still good.
The multi patient follow API changes only affects CareLink servers on which the multi follow option is enabled:
GET /patient/configuration/system/personal.cp.m2m.enabled
Multi follow was enabled on the US server last week and on the EU server a few days ago.
I already have a working private version, which I am testing for every scenario and after that I will create a PR for the official xDrip.
By the way I am working on a little bit more user friendly version, where the patient only needs to be provided if multiple patients are followed by the care partner, because there is new an API for patients if multi follow is enabled:
GET patient/m2m/links/patients

@Navid200
Copy link
Collaborator Author

Please try the latest release: https://github.com/NightscoutFoundation/xDrip/releases/tag/2023.05.26

@sedy89
Copy link

sedy89 commented May 26, 2023

wow... that was fast :) Thank you very much, it is working fine for me!

@Navid200
Copy link
Collaborator Author

The latest Nightly seems to address this issue.
We can always reopen if needed.

@vaneevaolya
Copy link

vaneevaolya commented Sep 30, 2023

Hello! The same Login error in Spain now again( Just 2 days ago it worked perfectly. Latest nightly build is not connecting also=(

@robmaggidev
Copy link

Same here in Italy, friday worked :/, upgrading to latest build doesn't fix. I'm using the patient account (in case this may be related the issue).

@awbunge
Copy link

awbunge commented Oct 1, 2023

I have the same problem here in Rome (Italy), from september 28th, when Medtronic did an "Important scheduled maintenance work". Tha last "Nightly build" of xDrip+ was that of 24th Sep 2023, it doesn't work after the scheduled maintenance work. Have some else the same problem? Thanks.

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

8 participants