Skip to content

Commit

Permalink
MiniMed Connect error: Bad response from CareLink (nightscout#15)
Browse files Browse the repository at this point in the history
MiniMed Connect error: Error: Bad response from CareLink: 
data for login should be send in body.
If data for login are in address "https://carelink.minimed.eu/patient/j_security_check?j_username=XXX&j_password=YYY", application send response "Bad Request page".
When the address is 'https://carelink.minimed.eu/patient/j_security_check' and post body =  "j_username=XXX&j_password=YYY" all is ok.
j_character_encoding: "UTF-8" I add becouse careapplication put this in post body.
  • Loading branch information
szymjaw authored and mddub committed Sep 28, 2019
1 parent b3ba262 commit 412a7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carelink.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var Client = exports.Client = function (options) {
CARELINK_SECURITY_URL,
reqOptions({
jar: jar,
qs: {j_username: options.username, j_password: options.password}
form: {j_username: options.username, j_password: options.password, j_character_encoding: "UTF-8"}
}),
checkResponseThen(next)
);
Expand Down

0 comments on commit 412a7c6

Please sign in to comment.