Error when requesting thing shadow - TOO_MANY_REQUESTS
I'm getting error with TOO_MANY_REQUESTS code when requesting thing shadow in a server connection. I think this error is caused by a quota exceeds, but I don't know what is the specific quota. If it is the case, can anyone help me to understand what is the quota my server is exceeding?
Bellow is the part of stack trace error
Caused by: com.amazonaws.services.iot.client.AWSIotException: TOO_MANY_REQUESTS at com.amazonaws.services.iot.client.core.AwsIotCompletion.get(AwsIotCompletion.java:213) ~[aws-iot-device-sdk-java-1.3.4.jar!/:na] at com.amazonaws.services.iot.client.shadow.AwsIotDeviceCommand.get(AwsIotDeviceCommand.java:58) ~[aws-iot-device-sdk-java-1.3.4.jar!/:na] at com.amazonaws.services.iot.client.shadow.AwsIotDeviceCommandManager.runCommand(AwsIotDeviceCommandManager.java:135) ~[aws-iot-device-sdk-java-1.3.4.jar!/:na] at com.amazonaws.services.iot.client.shadow.AwsIotDeviceCommandManager.runCommandSync(AwsIotDeviceCommandManager.java:108) ~[aws-iot-device-sdk-java-1.3.4.jar!/:na] at com.amazonaws.services.iot.client.shadow.AbstractAwsIotDevice.get(AbstractAwsIotDevice.java:93) ~[aws-iot-device-sdk-java-1.3.4.jar!/:na] at com.amazonaws.services.iot.client.AWSIotDevice.get(AWSIotDevice.java:299) ~[aws-iot-device-sdk-java-1.3.4.jar!/:na] at com.kl.compatec.app.central.iot.service.impl.AwsCentralIoTServiceImpl.loadCentralShadow(AwsCentralIoTServiceImpl.java:78) [classes!/:1.0.0] ... 121 common frames omitted
device shadow quotas are documented in the general reference under AWS IoT Core endpoints and quotas. The TOO_MANY_REQUESTS error is generated when there are more than 10 in-flight requests on a single connection.
In case you are requesting shadows from multiple devices you can also think of using fleet indexing to index the shadow and request multiple shadow with a single query.
Error when requesting thing shadow - TOO_MANY_REQUESTSasked 21 days ago
Simulate a "thing" in Java?asked 4 months ago
named shadow not found
Iot Fleet Indexing - search-index response includes random named shadowasked 3 months ago
"Getting started with AWS IoT Core" Shadow Python scripts get connection exceptionasked 3 months ago
Out of Sketch Subscribe Memory Error - Stops Shadow Updatesasked 3 years ago
How to automate the creation of Greengrass Core Device Shadow with fleet provisioning?asked 6 months ago
IoT thing shadow and Greengrass componentasked a year ago
shadow manager configuration
How to deal with shadow updates initated by device not and serverasked 5 months ago