nightscout / nightscout-connect

Single entry point for bridging cloud resources containing diabetes data to Nightscout.
GNU Affero General Public License v3.0
31 stars 31 forks source link

Request failed with status code 504 #20

Open nfontan opened 11 months ago

nfontan commented 11 months ago

Hi, Following this incident from the old repository https://github.com/nightscout/minimed-connect-to-nightscout/issues/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 commented 11 months ago

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

bewest commented 11 months ago

Please be careful you are testing the right branch: https://github.com/nightscout/nightscout-connect/pull/19. Hope this helps.

nfontan commented 11 months ago

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 commented 11 months ago

@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 commented 11 months ago

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. https://github.com/nightscout/minimed-connect-to-nightscout/pull/46#issuecomment-1690084217 I have to wonder if Medtronic's behavior is considered legal in Europe.

bewest commented 11 months ago

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

nfontan commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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

nfontan commented 10 months ago

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!