We are using pay as you go for mqtt.
from today morning we started getting org.eclipse.paho.mqttv5.common.MqttException: Not authorized
error on connection.
Credentials are same & correct from long time they are not updated.
Thanks for sharing the cluster url.
Most likely when the password is incorrect then you will receive a “Not authorized” error on connection.
We are checking further, meantime can please try to change the password and do a quick test by using mqtt cli client as mentioned in the startup guide of MQTT CLI client. Please let us know if you still get the same error.
A second connection using the same clientId as that of a currently connected session will always lead to the broker closing the connection to the prior client. This mechanism is called client take-over and is mandated by the MQTT specification.
The “Not authorized” would make it seem like the new connection attempt was failing. Was this the case, or were already connected sessions losing their connections? Can you please share a clientId of affected clients?
Have you tried running your code against a locally hosted HiveMQ broker?
From what you are describing my best guess would be that the client is not re-using the authentication credentials on automatic re-connect.
Could that be possible?