rde-master / ioBroker.todoist2

todoist for ioBroker
MIT License
5 stars 5 forks source link

Warning Messages at irregular Intervals #126

Open haselchen opened 10 months ago

haselchen commented 10 months ago

@rde-master @Apollon77

After the update from v1 to v2 everything worked satisfactorily. Unfortunately, I can't say exactly what led to the reports. I update nodes and the system regularly.

received error 502 response from todoist with content: "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n</body>\r\n</html>\r\n"

Sometimes it is code 503 or sometimes 500.

Here it is now 502:

{"message":"Request failed with status code 502","name":"AxiosError","stack":"AxiosError: Request failed with status code 502\n at settle (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:1913:12)\n at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/dist/node/axios.cjs:2995:11)\n at IncomingMessage.emit (node:events:529:35)\n at endReadableNT (node:internal/streams/readable:1368:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Authorization":"Bearer XXXXXXXXXXXXXXX","User-Agent":"axios/1.5.1","Accept-Encoding":"gzip, compress, deflate, br"},"method":"get","baseURL":"https://api.todoist.com","url":"/rest/v2/tasks","responseType":"json"},"code":"ERR_BAD_RESPONSE","status":502}

Node 18.18.2 NPM 9.8.1 Admin 6.11.0 JS Controller 4.0.24 Adapter Version 0.9.1