SearchIndexAsync invalid nextToken #3563
-
Before open a bug, I want to share my problem. I have simple request C# for SearchIndexAsync aws SDK. First time receive response with 'nextToken' field for request other page. I use nextToken value, but receive 'Invalid nextToken' I perform same request by aws cli and it's working fine. My code:
Example:
_iotClient is IAmazonIoT Exception
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Can you share more reproduction code? If possible, a SSCCE (Short, Self Contained, Correct, Example) showing how you're creating the initial request and later performing pagination. The SDK doesn't modify the pagination token, so I assume there's something missing. You can also enable verbose logging to see the actual request the SDK is making: AWSConfigs.LoggingConfig.LogTo = LoggingOptions.Console;
AWSConfigs.LoggingConfig.LogMetricsFormat = LogMetricsFormatOption.JSON;
AWSConfigs.LoggingConfig.LogResponses = ResponseLoggingOption.Always;
AWSConfigs.LoggingConfig.LogMetrics = true;
var iot = new AmazonIoTClient(); The CLI has a $ aws iot search-index --index-name "AWS_Things" --query-string "thingTypeName:LightBulb" --debug |
Beta Was this translation helpful? Give feedback.
Marking this as answered due to opened issue #3566 and requested information requested in support case mentioned in the issue.