Subscribe never completes (no SUBACK) for one topic after reconnect with clean session #819
-
Hi, $aws/things/THING_ID/jobs/get/+ Each subscription waits for its SUBACK, and subscriptions can be issued in parallel. The MqttConnection is configured to not rejoin the previous session but to start a new one. So, after a reconnect, I re-subscribe to all topics. Based on the logs, the subscription was initiated at 2025-06-17 15:01:06. At that point, the following error was reported: Interestingly, all other subscriptions made in parallel succeeded and received SUBACKs normally. Unfortunately, AWS IoT logs were not enabled at the time, and I haven't been able to reproduce the issue so far. Questions:
Any clarification or guidance would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Just a quick update — based on the analysis on the AWS backend, it looks like that subscription triggered an error with the reason "Throttled." |
Beta Was this translation helpful? Give feedback.
-
Beyond that, I would suggest using the MQTT5 client over the 311 client. A number of the non-compliant edge cases (ie no ack returned) are ameliorated in MQTT5 and error reporting at the protocol level is greatly improved. Beyond that, if you have SDK logs that cover the time period you saw the behavior, we could take a look at them. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay in replying — I was trying to reproduce the issue so I could provide you with logs. However, I spoke with AWS backend support, and they confirmed that when a subscribe request is throttled, they do not send back a response due to backward compatibility requirements. They also suggested switching to MQTT5, and we're currently evaluating whether that transition is feasible. In the meantime, can I ask what I should expect when a subscription timeout occurs? Will the SubAck callback be triggered with an error? In the cases where we observed the issue, the connection was still active (we were able to both publish and receive data on non-throttled subscriptions), but we did not see any subscribe attempts on the backend. |
Beta Was this translation helpful? Give feedback.
Seems likely.