randomBrainstormer / MMM-GoogleCalendar

Google Calendar for MagicMirror²
MIT License
64 stars 42 forks source link

Integrate calendar #51

Closed p145085 closed 6 months ago

p145085 commented 6 months ago
0|mm       |       retry: 3,
0|mm       |       httpMethodsToRetry: [Array],
0|mm       |       noResponseRetries: 2,
0|mm       |       statusCodesToRetry: [Array]
0|mm       |     }
0|mm       |   },
0|mm       |   code: 404,
0|mm       |   errors: [ { domain: 'global', reason: 'notFound', message: 'Not Found' } ]
0|mm       | }
0|mm       | [14.12.2023 20:57.04.666] [ERROR] (node:19615) UnhandledPromiseRejectionWarning: TypeError: request?.response?.data?.error?.toUpperCase is not a function
0|mm       |     at Class.checkForHTTPError (/home/emila/MagicMirror/modules/MMM-GoogleCalendar/node_helper.js:192:41)
0|mm       |     at /home/emila/MagicMirror/modules/MMM-GoogleCalendar/node_helper.js:231:24
0|mm       |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|mm       | (Use `electron --trace-warnings ...` to show where the warning was created)
0|mm       | [14.12.2023 20:57.04.675] [ERROR] (node:19615) 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: 1)

I am unsure what the calendarID is supposed to have for format. I think that might be the issue but I'm not sure, this snippet is from 'pm2 logs mm'.