Occasional AxiosError causes Plugin Crash and Homebridge Restart
jsiegenthaler opened this issue · 2 comments
jsiegenthaler commented
Describe The Bug:
Occasional AxiosError causes Plugin Crash and Homebridge Restart. Observed since Axios 1.2.1 was included.
To Reproduce:
Just use the plugin normally. Observe the logs from time to time. Sometimes an AxiosError occurs
Expected behavior:
Axios should operate error free
Logs:
/usr/lib/node_modules/homebridge-eosstb/node_modules/axios/lib/core/settle.js:19
reject(new AxiosError(
^
AxiosError: Request failed with status code 401
at settle (/usr/lib/node_modules/homebridge-eosstb/node_modules/axios/lib/core/settle.js:19:12)
at IncomingMessage.handleStreamEnd (/usr/lib/node_modules/homebridge-eosstb/node_modules/axios/lib/adapters/http.js:497:11)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
Environment:
- Plugin Version:
- Homebridge Version: 1.6.0
- Node.js Version: 18.12.1
- NPM Version: 8.19.2
- Operating System: Microsoft Windows 10 Home (10.0.19045) and Raspbian GNU/Linux Buster (10)
jsiegenthaler commented
Reported to Axios as a bug in axios/axios#5311
jsiegenthaler commented
Fixed in release v2.1.0