Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional AxiosError causes Plugin Crash and Homebridge Restart #85

Closed
jsiegenthaler opened this issue Dec 13, 2022 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@jsiegenthaler
Copy link
Owner

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 jsiegenthaler added the bug Something isn't working label Dec 13, 2022
@jsiegenthaler jsiegenthaler self-assigned this Dec 13, 2022
@jsiegenthaler
Copy link
Owner Author

Reported to Axios as a bug in axios/axios#5311

@jsiegenthaler
Copy link
Owner Author

Fixed in release v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant