DynamoDB ListExports fails to validate NextToken

0

I am attempting to list all of the exports from my DynamoDB table. When I attempt to use the NextToken to retrieve the next page of exports it fails to validate the token giving me this error

botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the ListExports operation: Invalid Request: 1 validation error detected: Value ***** at 'nextToken' failed to satisfy constraint: Member must have length less than or equal to 656

This only occurs after 10 exports have been returned. For example, if I change the MaxResults to 2 it will return the next page until I get to the 10th export. Then the NextToken will be of length 848 and fail to validate. I believe this is an issue on AWS's side. Can you please help?

Jake
asked 2 months ago491 views
1 Answer
0

The error message indicates that the NextToken must have a length less than or equal to 656 characters. After the 10th export, the NextToken exceeds this limit (with a length of 848) and fails validation. Review your pagination strategy and ensure it correctly handles the NextToken.

profile picture
EXPERT
answered 2 months ago
  • There is no issue from a code perspective. The NextToken being return is of length 848. I do not control that. I believe this may be an issue on AWS's end. If the pagination strategy is correct what other issues could it be?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions