aws / aws-appsync-community

The AWS AppSync community
https://aws.amazon.com/appsync
Apache License 2.0
506 stars 32 forks source link

GraphQL error: Throughput exceeds the current capacity of your table or index. #336

Closed nithin-viswanathan closed 11 months ago

nithin-viswanathan commented 1 year ago

We are getting the below error when we fetch multiple records from dynamo db.

Issues in fetching plan data GraphQL error: Throughput exceeds the current capacity of your table or index. DynamoDB is automatically scaling your table or index so please try again shortly. If exceptions persist, check if you have a hot key:

const client = new AWSAppSyncClient({ url: aws_exports.aws_appsync_graphqlEndpoint, region: aws_exports.aws_appsync_region, auth: { type: AUTH_TYPE.AWS_LAMBDA, token: () => getFunctionToken() }, disableOffline: true });

What may be the reason for this? How can we solve this

saltman424 commented 1 year ago

@nithin-viswanathan it doesn't sound like an AppSync issue. It sounds like an issue with your DynamoDB configuration. I would recommend closing this issue and looking here for tips on how to debug DynamoDB throttling problems

If you continue to have issues, you should open up a StackOverflow issue and post more details there