プライバシーポリシー
データプライバシーとセキュリティ契約

$event/client_connected (online), $events/session_subscribed (subscription), or subscribe to all events $events/#, to receive event messages containing detailed information. For specifics, refer to the Event Topics section in the Query Client Events documentation.client_disconnected event's reason field. For specific definitions of disconnection reasons and resolution suggestions, refer to the following Common Disconnection Reasons Reference Table.client_connected and client_disconnected are observed.reason field in the client_disconnected event. If the reason is taken over, this is one of the most typical causes of client connection jitter, indicating that the current client was kicked offline by another device using the same Client ID.reason: taken over indicate a fault. If it is a sporadic occurrence and typically happens after device network fluctuations subside, it may be MQTT's Self-Repair behavior in weak network environments, requiring no additional intervention.client_disconnected event at that time, and confirm whether the device experienced a brief disconnection.session_subscribed event to confirm whether the device has successfully subscribed to the target Topic.Disconnection Reason | Semantics | Recommended Solution |
normal | The server received the DISCONNECT message and disconnected normally. | Normal event. Confirm whether the client-initiated disconnection is expected by business logic (for example, the client actively exits upon task completion). |
takeovered | The client was disconnected by a device with the same client ID. | Client ID conflict. Check the client ID generation policy to ensure each online device has a unique client ID. (If it is an occasional single occurrence, it may be an automatic recovery after network fluctuation, and no action is required.) |
kicked | The client was forced to log out by management. | Administrative action. Please check the management console or API call logs of the MQTT service to confirm which administrator or automated policy performed the force-logout action and why. |
keepalive_timeout | The MQTT Broker node did not receive an interactive message from the client within 1.5 times the keep-alive period. | Network or client issue. 1. Check whether the device network connection is stable. 2. Check whether the device CPU/memory load is too high, resulting in failure to send heartbeat packets in time. 3. In a weak network environment, you may appropriately increase the keep-alive value. |
not_authenticated | Unauthenticated, similar to HTTP status code 401. | Authentication information error. Check whether the username, password, certificate, or Token configured for the client is correct and whether it matches the server-side configuration. |
not_authorized | Unauthorized, similar to HTTP status code 403. | Insufficient permissions. The client is authenticated but lacks permission to connect or perform operations (such as publishing/subscribing to specific topics). Check the ACL policy configuration and grant necessary permissions to this client. |
tcp_closed | TCP connection closed. | Network layer disconnected. Possible causes include device network interruption, NAT Gateway timeout, or firewall policy blocking. |
ping_without_connect | The client sent a PING before sending the CONNECT packet. | Client SDK/firmware Bug. Check and fix the client MQTT protocol implementation code to ensure strict adherence to the connection establishment sequence: CONNECT -> other packets. |
authentication_expired | Authentication failed. JWT/SAS tokens have expired. | Credentials expired. The client program should have the capability to refresh Token. |
too_many_connection | Exceeding the maximum cluster/node connections. | Server-side capacity issue. 1. Contact Us to upgrade your service specifications or increase the maximum connection limit. 2. Troubleshoot whether client-side exceptions (such as code bugs) are causing the creation of a large number of invalid connections. |
go_away | MQTT Broker node restart, graceful shutdown. | Usually caused by server-side upgrades or maintenance. The client should implement an automatic reconnection mechanism to automatically reconnect after the server recovers. |
client_id_too_long | Client ID exceeds the maximum limit. | Client ID exceeds the maximum length. Check the ID length (the MQTT protocol's inherent limit of 23 characters) and modify the client ID generation logic. |
client_id_required | Persistent session connection lacks the required client ID field. | Client protocol error. When CleanSession=false, the client ID cannot be empty. Please fix the client logic: either provide an ID or set CleanSession to true. |
client_id_invalid | Client ID is non-compliant. Client ID can only contain [0-9a-zA-Z] characters. Please modify the client ID generation logic to remove or replace invalid characters. | |
bad_will_message | Illegal will message. | Will message configuration error. Check the will message (Will Message) set by the client, ensure its topic (Topic) and payload (Payload) formats are correct, and verify that the client has permission to publish messages to the specified will topic. |
server_internal_error | Internal server error. | Server issue. Please contact us and provide relevant information (such as timestamp, instance ID, and client ID) to troubleshoot server issues. |
フィードバック