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

retryDurationOnAttempt(n) function is missing in carelink.js #5

Open
benceszasz opened this issue Aug 28, 2020 · 0 comments
Open

retryDurationOnAttempt(n) function is missing in carelink.js #5

benceszasz opened this issue Aug 28, 2020 · 0 comments

Comments

@benceszasz
Copy link

The retryDurationOnAttempt(n) function in carelink.js is missing, which causes program errors and later data gaps, because the module remains in a wrong state after the first error:

First error due to missing funcion:

app/web.1 tick 2020-08-28T06:40:53.654Z
app/web.1 MiniMed Connect error: ReferenceError: retryDurationOnAttempt is not defined
app/web.1 stack: ReferenceError: retryDurationOnAttempt is not defined
app/web.1     at Object.fetch (/app/node_modules/minimed-connect-to-nightscout/carelink.js:231:35)
app/web.1     at process._tickCallback (internal/process/next_tick.js:68:7)

Subsequent continuous errors due to the first error:

app/web.1 tick 2020-08-28T06:41:53.654Z
app/web.1 MiniMed Connect error: Error: Request failed with status code 500
app/web.1 stack: Error: Request failed with status code 500
app/web.1     at createError (/app/node_modules/axios/lib/core/createError.js:16:15)
app/web.1     at settle (/app/node_modules/axios/lib/core/settle.js:17:12)
app/web.1     at /app/node_modules/axios-cookiejar-support/lib/interceptors/response.js:79:25
app/web.1     at new Promise (<anonymous>)
app/web.1     at responseInterceptor (/app/node_modules/axios-cookiejar-support/lib/interceptors/response.js:78:9)
app/web.1     at instance.interceptors.response.use.res (/app/node_modules/axios-cookiejar-support/lib/index.js:130:67)
app/web.1     at process._tickCallback (internal/process/next_tick.js:68:7)

The missing retryDurationOnAttempt(n) function exists in the original modified version of the carelink.js in FredMK's repo: FredMK/minimed-connect-to-nightscout

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

1 participant