MMM-Strava icon indicating copy to clipboard operation
MMM-Strava copied to clipboard

Module shows "strava currently unavailable"

Open stampede79 opened this issue 1 year ago • 0 comments

Hi,

after running a while (sometimes some hours sometimes 2 days) the module shows: "strava currently unavailable" . Looking into the logs the following error occurs and seems to be the reason ?!: [ERROR] (node:1) UnhandledPromiseRejectionWarning: RequestError: Error: read ECONNRESET at new RequestError (/opt/magic_mirror/modules/MMM-Strava/node_modules/request-promise-core/lib/errors.js:14:15) at Request.plumbing.callback (/opt/magic_mirror/modules/MMM-Strava/node_modules/request-promise-core/lib/plumbing.js:87:29) at Request.RP$callback [as _callback] (/opt/magic_mirror/modules/MMM-Strava/node_modules/request-promise-core/lib/plumbing.js:46:31) at self.callback (/opt/magic_mirror/modules/MMM-Strava/node_modules/request/request.js:185:22) at Request.emit (events.js:314:20) at Request.onRequestError (/opt/magic_mirror/modules/MMM-Strava/node_modules/request/request.js:877:8) at ClientRequest.emit (events.js:314:20) at TLSSocket.socketErrorListener (_http_client.js:427:9) at TLSSocket.emit (events.js:314:20) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) [14.07.2023 22:00.38.180] [ERROR] (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 686)

After restarting Magic Mirror everything works fine, but the error occurs from time to time.

Am I doing sth. wong or can that be fixed/handled in the code ?

Thx and regards Jan

stampede79 avatar Jul 19 '23 12:07 stampede79