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
Connected to the AWS IoT Core and subscribed to the topic.
Actual behavior
Connection fails. The following output is provided:
Client 'UNKNOWN@private-endpoint.iot.us-east-1.amazonaws.com' sending CONNECT MqttConnect{keepAlive=60, cleanStart=true, sessionExpiryInterval=0}
Client 'UNKNOWN@private-endpoint.iot.us-east-1.amazonaws.com' DISCONNECTED Exception while decoding CONNACK: remaining length too short
Exception while decoding CONNACK: remaining length too short
To Reproduce
Steps
Run from the terminal: mqtt-cli.exe subscribe --topic "#" --showTopics --host private-endpoint.us-east-1.amazonaws.com --port 8883 --secure --cert certificate.pem.crt --key private.pem.key --verbose --debug
Reproducer code
Details
Affected MQTT CLI version(s):
Used JVM version:
4.5.1
Picocli 4.5.0
JVM: 14 (Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 14+36-1461)
OS: Windows 10 10.0 amd64
Workaround
Add switch to MQTT 3 and set QOS to 0 by adding the following parameters: '--mqttVersion 3 --qos 0'
For example: mqtt-cli.exe subscribe --topic "#" --showTopics --host private-endpoint.us-east-1.amazonaws.com --port 8883 --secure --cert certificate.pem.crt --key private.pem.key --verbose --debug --mqttVersion 3 --qos 0
The text was updated successfully, but these errors were encountered:
I'm closing this issue as at the time where you reported this issue AWS IoT core did not support MQTT5 and you ran into this issue: hivemq/hivemq-mqtt-client#327
Expected behavior
Connected to the AWS IoT Core and subscribed to the topic.
Actual behavior
Connection fails. The following output is provided:
To Reproduce
Steps
Run from the terminal:
mqtt-cli.exe subscribe --topic "#" --showTopics --host private-endpoint.us-east-1.amazonaws.com --port 8883 --secure --cert certificate.pem.crt --key private.pem.key --verbose --debug
Reproducer code
Details
Workaround
Add switch to MQTT 3 and set QOS to 0 by adding the following parameters: '--mqttVersion 3 --qos 0'
For example:
mqtt-cli.exe subscribe --topic "#" --showTopics --host private-endpoint.us-east-1.amazonaws.com --port 8883 --secure --cert certificate.pem.crt --key private.pem.key --verbose --debug --mqttVersion 3 --qos 0
The text was updated successfully, but these errors were encountered: