psonnera / minimed-connect-to-nightscout-wrapper

mmconnect to Nightscout plugin wrapper
3 stars 1 forks source link

Request failed with status code 404 #2

Open matthewstathis opened 3 years ago

matthewstathis commented 3 years ago

When running node run.js I get a request failed with status code 404 (see image). Any idea what might be causing this? 5F510533-98EB-49DD-A8D9-525F80650D3D

yacenty commented 3 years ago

same on my installation

Robinbloodsugar commented 3 years ago

mine as well here is the log::

pi@mmconnect:~/minimed-connect-to-nightscout-wrapper $ node run.js Error: Request failed with status code 404 stack: Error: Request failed with status code 404 at createError (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/settle.js:17:12) at /home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25 at new Promise () at responseInterceptor (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9) at instance.interceptors.response.use.res (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/index.js:130:67) at process._tickCallback (internal/process/next_tick.js:68:7)

Error: Request failed with status code 404 stack: Error: Request failed with status code 404 at createError (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/settle.js:17:12) at /home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25 at new Promise () at responseInterceptor (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9) at instance.interceptors.response.use.res (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/index.js:130:67) at process._tickCallback (internal/process/next_tick.js:68:7) Error: Request failed with status code 404 stack: Error: Request failed with status code 404 at createError (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/settle.js:17:12) at /home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25 at new Promise () at responseInterceptor (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9) at instance.interceptors.response.use.res (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/index.js:130:67) at process._tickCallback (internal/process/next_tick.js:68:7) Error: Request failed with status code 404 stack: Error: Request failed with status code 404 at createError (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/settle.js:17:12) at /home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25 at new Promise () at responseInterceptor (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9) at instance.interceptors.response.use.res (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/index.js:130:67) at process._tickCallback (internal/process/next_tick.js:68:7) Error: Request failed with status code 404 stack: Error: Request failed with status code 404 at createError (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/settle.js:17:12) at /home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25 at new Promise () at responseInterceptor (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9) at instance.interceptors.response.use.res (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/index.js:130:67) at process._tickCallback (internal/process/next_tick.js:68:7) Error: Request failed with status code 404 stack: Error: Request failed with status code 404 at createError (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/settle.js:17:12) at /home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25 at new Promise () at responseInterceptor (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9) at instance.interceptors.response.use.res (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/index.js:130:67) at process._tickCallback (internal/process/next_tick.js:68:7) Error: Request failed with status code 404 stack: Error: Request failed with status code 404 at createError (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios/lib/core/settle.js:17:12) at /home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25 at new Promise () at responseInterceptor (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9) at instance.interceptors.response.use.res (/home/pi/minimed-connect-to-nightscout-wrapper/node_modules/minimed-connect-to-nightscout/node_modules/axios-cookiejar-support/lib/index.js:130:67) at process._tickCallback (internal/process/next_tick.js:68:7)

matthewstathis commented 3 years ago

are you using a US or EU Carelink account? at first I was trying to use my usual US account and I was getting errors like that and then I switch to an EU account (and an EU login on the app on my phone) and that got me past those errors, now I just get a stale data error instead

steinauf85 commented 3 years ago

same error for me as well. using US account.

2 factor is enabled on the account. perhaps that has something to do with it?

steinauf85 commented 3 years ago

Seems that the US server is actively blocking connections as 404 errors happen regardless of credentials. The only way I was able to get data into Nightscout was to use an Android device with the xDripCareLinkFollower app installed from the APK at that link.

So, somehow that app is able to log in, but this one isn't. I'm wondering if it's the method that it uses to login, or if CareLink only allows access to certain device types? If the former, I wonder if the code could be implemented within this app. It is separated out into its own repository, https://github.com/benceszasz/CareLinkJavaClient.

Unfortunately I'm far too inexperienced to make this work, but I do think it would be great to have this work on my Pi if someone else is able to take a crack at it.

MJS0007 commented 2 years ago

I have the same error myself, did you manage to find a fix?

steinauf85 commented 2 years ago

No. Don’t think it’s functional at all. I use xdrip on an android device instead

On Wed, Jun 22, 2022 at 7:26 AM MJS0007 @.***> wrote:

I have the same error myself, did you manage to find a fix?

— Reply to this email directly, view it on GitHub https://github.com/psonnera/minimed-connect-to-nightscout-wrapper/issues/2#issuecomment-1162978618, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALVZ3QOM3UO54KGOXPDPZCDVQLZ4RANCNFSM4Z5VBHOQ . You are receiving this because you commented.Message ID: @.*** .com>