Skip to content

Troubleshooting ​

Most connection problems are explained by the MQTT reason code. Use MQTT 5 where you can: it returns precise codes. With mosquitto add -d; in other libraries log the CONNACK / DISCONNECT reason.

Reason codes ​

CodeNameUsual causeFix
0x85Client identifier not validClient ID is not your issued ID and does not start with <issued ID>_Use <issued client ID>_<suffix>. See Client IDs.
0x86Bad user name or passwordWrong or deleted credentials, extra spaces when copyingCopy them again from MQTT Connection Settings.
0x87Not authorizedACL denies the publish/subscribe, or the credentials lack the Publisher/Subscriber permissionCheck the rule with Test ACL Policies on the ACL page.
0x8ABannedToo many failed or rejected connection attempts from your IP/clientFix the cause; the block lifts automatically (within 24 hours at most).
0x8ESession taken overAnother client connected with the same client IDGive every client a unique suffix.
0x97Quota exceededOn CONNECT: concurrent connections or session minutes used up. On PUBACK: the message broke a per-message limit (size over 256 KB, messages per second, topic levels, retained messages) or the monthly traffic is used upCheck usage in the console; send smaller or fewer messages; disconnect idle clients or upgrade.
0x89Server busyToo many new connections per second, or a client flooding the brokerAdd reconnect backoff with random jitter; spread publishes out.

A message that breaks a limit is dropped. QoS 0 publishers are not told; QoS 1 and 2 publishers on MQTT 5 get the reason code in the PUBACK / PUBREC, which is why QoS 1 is useful while testing.

MQTT 3.1.1 clients only see a few generic codes: 4 (bad username or password), 5 (not authorized), 2 (identifier rejected) and 3 (server unavailable, also used for quota limits).

The client connects and drops every few seconds ​

Two clients share a client ID and keep taking the session from each other (0x8E). This often happens when the same firmware runs on several devices with a hard-coded ID, or when you open the same script twice. Build the ID from a serial number or MAC address. The Connections tab's connection history shows the reason.

TLS errors ​

  • Certificate verify failed / unknown CA: the device has no root CA store. Load ISRG Root X1 (see ESP32), or update the OS CA bundle.
  • Hostname mismatch: connect to broker.connectmq.com, not to an IP address.
  • Clock wrong on the device: some TLS stacks reject certificates when the device date is far off; sync with NTP.
  • Handshake times out: the network blocks port 8883. Try wss://broker.connectmq.com:8084/mqtt, which looks like normal HTTPS traffic to most firewalls.

Messages do not show up in the console ​

  1. Is the console Connected (top right)? If not, click it and Connect.
  2. Is the device publishing to the topic you think? Watch the TOPICS tree or subscribe to # with mosquitto_sub.
  3. Is the topic subscribed on the dashboard? Add it with Add Topic.
  4. With ACL on and Web console → Full access off, the console needs an allow rule too.
  5. Values appear per field only for JSON objects.

No alerts are raised ​

Alert rules are evaluated by the console in the browser, so at least one console tab must be open and connected. Check that the rule is Active, that the field name matches the payload exactly (it is case sensitive) and use the rule editor's live preview. See Alert rules.

Still stuck? ​

Write to support with your tenant code (from Tenant & Billing Settings), the client ID, the time of the problem and the reason code. Never send your password.

Fully managed MQTT broker for connected devices.