Closed willin closed 1 year ago
I think protocolVersion
should be 4 for Azure.
Unhandled rejection AmqpError
at Connection.<anonymous> (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/amqp_client.js:182:23)
at emitOne (events.js:115:13)
at Connection.emit (events.js:210:7)
at Connection._terminate (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/connection.js:551:8)
at Connection._processError (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/connection.js:351:8)
at Object.errorHandler (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/connection.js:282:43)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:203:67)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
Unhandled rejection AmqpError
at Connection.<anonymous> (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/amqp_client.js:182:23)
at emitOne (events.js:115:13)
at Connection.emit (events.js:210:7)
at Connection._terminate (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/connection.js:551:8)
at Connection._processError (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/connection.js:351:8)
at Object.errorHandler (/Users/willin/Documents/dwing/AirHub/node_modules/amqp10/lib/connection.js:282:43)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:203:67)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
at Object.event (/Users/willin/Documents/dwing/AirHub/node_modules/stately.js/Stately.js:190:52)
when 4
Nothing in those stacktrace shows MQTT.js, or am I reading them wrong?
I have same error but different description events.js:182 throw er; // Unhandled 'error' event ^
Error: read ECONNRESET at exports._errnoException (util.js:1022:11) at TLSWrap.onread (net.js:610:25)
This is my code from example that have been provided. Then I changed it to localhost.
var mqtt = require('mqtt') var client = mqtt.connect('mqtts://127.0.0.1:1883') client.on('connect', function () { client.subscribe('presence') client.publish('presence', 'Hello mqtt') }) client.on('message', function (topic, message) { // message is Buffer console.log(message.toString()) client.end() })
This is an automated message to let you know that this issue has gone 365 days without any activity. In order to ensure that we work on issues that still matter, this issue will be closed in 14 days.
If this issue is still important, you can simply comment with a "bump" to keep it open.
Thank you for your contribution.
This issue was automatically closed due to inactivity.