You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @ogis-yamazaki, when destroy is called and err is not undefined the stream also emits an error event and by defautl if no error listener is attached that results in an uncaught exception. In this case we could both add an error listener on proxy or simply ignore the error there and just return the error to the callback, I would go for the second case for now because it makes more sense to me
MQTTjs Version
5.5.0
Broker
none
Environment
Browser (Google Chrome 122.0.6261.112)
nginx
Description
I was trying a test that intentionally generated an error.
No broker was used, only nginx was used.
I have nginx listening on port 80 and when I try to connect to it via websocket I get
Uncaught Error
.The expected error event does not seem to occur.
From my research, it seems to be affected by the following new part that was added in 5.5.0.
However, I do not know how it should be fixed.
Minimal Reproduction
Reproduction code
Here is my nginx.conf
Debug logs
console
WebSocket connection to 'ws://127.0.0.1/' failed:
Uncaught Error: WebSocket error
The text was updated successfully, but these errors were encountered: