SearchIndexAsync invalid nextToken #3563
Unanswered
Maverick1983
asked this question in
Q&A
Replies: 1 comment 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
All reactions