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

WebSocket crash on line 2922 #189

Closed
steffjenl opened this issue Jan 8, 2023 · 1 comment
Closed

WebSocket crash on line 2922 #189

steffjenl opened this issue Jan 8, 2023 · 1 comment

Comments

@steffjenl
Copy link

WebSocket interval crash on line 2922 when connection is lost.

Error: WebSocket is not open: readyState 0 (CONNECTING)
File "/node_modules/ws/lib/websocket.js", line 441, col 13, in WebSocket.send
throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
File "/node_modules/node-unifi/unifi.js", line 2922, col 16, in Timeout._onTimeout
this._ws.send('ping');
File "node:internal/timers", line 559, col 17, in listOnTimeout
File "node:internal/timers", line 502, col 7, in processTimers

How do you catch this exception?

@jens-maus
Copy link
Owner

Please provide example code of the node-unifi use-case where this exception happens so that we can investigate.

@jens-maus jens-maus closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants