-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
v4.2.2 socket error #1189
Comments
@BCsabaEngine I have the same issue but within the browser using the WSS protocol. It produces the error |
Yes, same situation. |
thanks for filing this quickly. I'll take a look at the issue. |
@bashman @rcaceiro @BCsabaEngine can you let me know which version of node you are using? |
ok. It was a change that was supposed to be rolled back but didn't. There's going to be another patch release soon to fix this. |
Node 14.15.0 linux, 14.13.0 win. |
@BCsabaEngine can you change the two lines that are being changed in the linked PR in your code while running v4.2.2 to validate that the change is effective. |
After commit the two changed lines it works! We are waiting for official release. |
kk published @4.2.3, please check that it works and close this issue if it does. |
Perfect, "npm outdated" reported new version, after update works fine. |
I am happy to see my shrinkwrap about mqtt: some dependency updated/removed by you. |
My situation continues. I am using MQTT.js for browser. |
I have just upgraded 4.2.1 to 4.2.2 (npm update) and my nodejs app cannot connect to mosquitto broker with user+pass. (settings not changed).
mosquitto.log contains "Socket error on client " lines and mqtt lib on('error') say:
Error: Connection refused: Not authorized
at MqttClient._handleConnack (c:\Development.Priv\XX\node_modules\mqtt\lib\client.js:1190:15)
at MqttClient._handlePacket (c:\Development.Priv\XX\node_modules\mqtt\lib\client.js:424:12)
at work (c:\Development.Priv\XX\node_modules\mqtt\lib\client.js:321:12)
at Writable.writable._write (c:\Development.Priv\XX\node_modules\mqtt\lib\client.js:335:5)
at doWrite (c:\Development.Priv\XX\node_modules\mqtt\node_modules\readable-stream\lib_stream_writable.js:409:139)
at writeOrBuffer (c:\Development.Priv\XX\node_modules\mqtt\node_modules\readable-stream\lib_stream_writable.js:398:5)
at Writable.write (c:\Development.Priv\XX\node_modules\mqtt\node_modules\readable-stream\lib_stream_writable.js:307:11)
at Socket.ondata (_stream_readable.js:713:22)
at Socket.emit (events.js:314:20)
at addChunk (_stream_readable.js:303:12)
After downgrading to 4.2.1 problem solved.
AB#8673997
The text was updated successfully, but these errors were encountered: