Error when requesting thing shadow - TOO_MANY_REQUESTS

0

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
已提問 2 年前檢視次數 449 次
1 個回答
0

Hi,

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.

KR, Philipp

AWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南