We keep getting this exception in our app which has a scheduled job to read on a gloabl secondary index. Looks like it keeps backfilling periodically even though there were no changes on the table. The volumes on our table are quite low so a bit surprised to see this a few times a day. This is not a new index, so wondering should it not backfill only on insert/update of records. Anyone seen this before?
AmazonDynamoDBException: The security token included in the request is invalid. The complete stack is this. Exception in thread "main" com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: The security token included in the request is invalid.
The AWS Java SDK for Amazon DynamoDB module holds the client classes that are used for communicating with Amazon DynamoDB Service.
It also describes error messages and codes that are specific to Amazon DynamoDB. When your program sends a request, DynamoDB attempts to process it. If the request is successful, DynamoDB returns an HTTP success status code ( 200 OK ), along with the results from the requested operation.
For example, in a Java program, you can write try-catch logic to handle a ResourceNotFoundException . If you are not using an AWS SDK, you need to parse the content of the low-level response from DynamoDB.
It might be creating that GSI. Wait for sometime based on the amount of data in your DB. And this issue will go away.
I just waited 30 seconds, the error was gone away automatically. I edited my dynamoDB table from my aws console directly, I think this temporary error originated from this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With