hivemq / hivemq-mqtt-client

HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
https://hivemq.github.io/hivemq-mqtt-client/
Apache License 2.0
854 stars 158 forks source link

Exception while decoding PUBLISH: topic alias must not exceed topic alias maximum #617

Closed deena-philip closed 6 months ago

deena-philip commented 7 months ago

Getting the error when receiving a message.

Exception while decoding PUBLISH: topic alias must not exceed topic alias maximum

pglombardo commented 7 months ago

Hi @deena-philip - could you provide a bit more information so we can investigate?

  1. Which broker are you using?
  2. Example client code on how/where this happened so we can try and reproduce this?

Thanks!

pglombardo commented 6 months ago

Hi @deena-philip - since I haven't heard back I'll close out this issue but if you want to revisit it, feel free to comment or file a new issue. We'd love to help out if it's needed!

nishankhadka09 commented 4 months ago

Broker: MQTTNet

How:

1-> Connect to broker from android device A. Success 2 -> Connect to broker from android device B. Success. 3 -> Publish from device B, Device A disconnects

Disconnection Reason for Device A:

com.hivemq.client.mqtt.mqtt5.exceptions.Mqtt5DisconnectException:Exception while decoding PUBLISH: topic alias must not exceed topic alias maximum

Reconnection attempt for Device A:

com.hivemq.client.mqtt.mqtt5.exceptions.Mqtt5ConnAckException: CONNECT failed as CONNACK contained an Error Code: BAD_USER_NAME_OR_PASSWORD.