jsiegenthaler / homebridge-eosstb

A homebridge plugin for the EOS set-top box as used by Sunrise, Telenet, Ziggo, Virgin Media and maybe more in various countries on the Horizon Go (HGO) platform
https://github.com/jsiegenthaler/homebridge-eosstb
32 stars 4 forks source link

Occasional AxiosError causes Plugin Crash and Homebridge Restart #85

Closed jsiegenthaler closed 1 year ago

jsiegenthaler commented 1 year ago

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:

jsiegenthaler commented 1 year ago

Reported to Axios as a bug in https://github.com/axios/axios/issues/5311

jsiegenthaler commented 1 year ago

Fixed in release v2.1.0