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

Request failed with status code 504 #20

Open
nfontan opened this issue Aug 19, 2023 · 10 comments
Open

Request failed with status code 504 #20

nfontan opened this issue Aug 19, 2023 · 10 comments

Comments

@nfontan
Copy link

nfontan commented Aug 19, 2023

Hi, Following this incident from the old repository
nightscout/minimed-connect-to-nightscout#44

I tried to change the user agent as I show here
https://github.com/nfontan/nightscout-connect/blob/main/lib/sources/minimedcarelink/index.js
Line 166

but the login errors continue (on CONSENT)

image

I am available to help in whatever is needed

Thanks

@colebrusco
Copy link

same thing here, I'm getting the 504 error. @nfontan did you find anything to fix it?

@bewest
Copy link
Member

bewest commented Aug 22, 2023

Please be careful you are testing the right branch: #19. Hope this helps.

@nfontan
Copy link
Author

nfontan commented Aug 22, 2023

Please be careful you are testing the right branch: #19. Hope this helps.

I tried the branch that you indicated but I got the same result
Thanks!
image

@bewest
Copy link
Member

bewest commented Aug 23, 2023

@nfontan Ok, in your case, you might need to stop/shutdown any software using a connection to carelink for 10 - 20 minutes before retrying. Or triple check the country code is correct (lowercase), and username and password are good.

@bewest
Copy link
Member

bewest commented Aug 23, 2023

I see, Medtronic appears to be blocking Nightscout in Europe. Please generate complaints to your local regulatory and Medtronic representatives. We need to get in touch with the decision makers at Medtronic.
nightscout/minimed-connect-to-nightscout#46 (comment)
I have to wonder if Medtronic's behavior is considered legal in Europe.

@bewest
Copy link
Member

bewest commented Aug 23, 2023

I updated the branch to send the information about Nightscout in the x-powered--by header. Please try again. :-)

@nfontan
Copy link
Author

nfontan commented Aug 24, 2023

I updated the branch to send the information about Nightscout in the x-powered--by header. Please try again. :-)

Now it works!
I'm running nighscout-connect locally pointing to a nighscout site hosted at northflank.com
The execution ended with an error but the data uploaded correctly

image

Nighscout site:
https://night--last-bait--wlvq7q7mdhmz.code.run/

I have pending to execute nighscout-connect directly in northflank to finish the tests

@bewest
Copy link
Member

bewest commented Aug 24, 2023

Fantastic. @nfontan, if you do mkdir logs that error will go away, and you can view all the http traffic between you and carelink in the results as json. It tried to write the log file, but the logs subdirectory doesn't exist.

@bewest
Copy link
Member

bewest commented Aug 25, 2023

Released, and in nightscout dev, which should make testing easier.

@nfontan
Copy link
Author

nfontan commented Aug 26, 2023

Released, and in nightscout dev, which should make testing easier.

@bewest
Hi Ben,
Sorry for the delay, I'm already testing the dev branch directly at northflank.com and everything seems to work correctly.
The nighscout_connect module is running directly in the cloud and the data is loaded correctly.

I only notice a difference. When I send the data from my local PC, it was loaded with all the information, but when it runs directly in the cloud, the data is limited.
image

I keep you up to date with the news

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

3 participants