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
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ