MQTT Connection Closed #503
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 5 days unless further comments are made.
p3
This is a minor priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 2 days.
Describe the bug
Hey I am using aws-iot-device-sdk-v2 in my Angular application on frontend side, I create a client using this sdk, so while using this my client create using following parameters:
My client has been created successfully, and my connect event is working fine but before message event is called, I get an error of connection close like this
Error: Error: Connection closed
at new CrtError (error.js:34:1)
at MqttClientConnection._this.on_error (mqtt.js:271:1)
at mqtt.js:475:1
at Object.cb (client.js:831:1)
at client.js:198:1
at Array.forEach ()
at flushVolatile (client.js:196:1)
at Duplexify. (client.js:469:1)
at Duplexify.emit (events.js:153:1)
at push.+xLd.Duplexify._destroy (index.js:199:1)errorr...... Error: Error: Connection closed
at new CrtError (error.js:34:1)
at MqttClientConnection._this.on_error (mqtt.js:271:1)
at mqtt.js:475:1
at Object.cb (client.js:831:1)
at client.js:198:1
at Array.forEach ()
at flushVolatile (client.js:196:1)
at Duplexify. (client.js:469:1)
at Duplexify.emit (events.js:153:1)
at push.+xLd.Duplexify._destroy (index.js:199:1)
Expected Behavior
My message event should be working according to documentation given by aws
Current Behavior
Throwing error
Error: Error: Connection closed
at new CrtError (error.js:34:1)
at MqttClientConnection._this.on_error (mqtt.js:271:1)
at mqtt.js:475:1
at Object.cb (client.js:831:1)
at client.js:198:1
at Array.forEach ()
at flushVolatile (client.js:196:1)
at Duplexify. (client.js:469:1)
at Duplexify.emit (events.js:153:1)
at push.+xLd.Duplexify._destroy (index.js:199:1)errorr...... Error: Error: Connection closed
at new CrtError (error.js:34:1)
at MqttClientConnection._this.on_error (mqtt.js:271:1)
at mqtt.js:475:1
at Object.cb (client.js:831:1)
at client.js:198:1
at Array.forEach ()
at flushVolatile (client.js:196:1)
at Duplexify. (client.js:469:1)
at Duplexify.emit (events.js:153:1)
at push.+xLd.Duplexify._destroy (index.js:199:1)
Reproduction Steps
const client = this.getClient(iotInput);
let counter = 0;
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.16.1
Environment details (OS name and version, etc.)
facing issue on both window and mac(ios) as well
The text was updated successfully, but these errors were encountered: