Skip to content

Channel tore down with error code 5134(libaws-c-mqtt: AWS_ERROR_MQTT_UNEXPECTED_HANGUP, The connection was closed unexpectedly. #595

Answered by jag3435
jag3435 asked this question in Q&A
Discussion options

You must be logged in to vote

The issue has been resolved. I was following the instructions in the README, https://github.com/aws/aws-iot-device-sdk-java-v2/blob/main/samples/Mqtt5/PubSub/README.md but it didn't mention adding the necessary connection properties, particularly the client ID. I missed this step, and since we have some policies configured to validate the client ID, this was the cause of the problem. Thanks for your help.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jag3435
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants