Random "The configured broker responded with unauthorized"

Hi there, I´m using the public broker from HiveMQ and it´s working pretty well for a personal project. But what me confuses is a random “The configured broker responded with unauthorized” error while connect. I would estimate a 50:50 chance that the server connects to the server.

For investigating the log …
Server: broker.hivemq.com
Port: 1883
ClientId: ufxMqttBackend
Time: 20:03 / 18.11.2024

Any idea? I connect with an PHP library every minute to the server and send some messages. This is triggered by an cronjob server side.

From my client in JS I don´t get such an error, but there is a “permanent” connection.

Hi @mchotti

Thank you for your message.

The endpoint broker.hivemq.com:1883 is a public, unencrypted service designed for ease of use. However, due to its open nature, it is susceptible to challenges such as connection storms. To maintain responsiveness under heavy load, the service implements connection throttling. This is when clients may receive the CONNECTION_RATE_EXCEEDED response reason code in the CONNACK packet.

These limitations are inherent to public and unencrypted services. If you’re looking for a free yet more personalized alternative, we recommend exploring HiveMQ Serverless.

Please let us know if you have any further questions or need assistance setting up your personal service.

Kind regards,
Dasha from The HiveMQ Team