NextToken in response is invalid and not similar to CLI equivalent #556
-
Using the cli:
My attempt with the SDK:
gives
The returned Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
interesting—I don't think you need to transform the next token. Did you try using the paginator? https://docs.rs/aws-sdk-sfn/latest/aws_sdk_sfn/client/struct.Client.html#method.list_state_machines use tokio_stream::StreamExt;
let items = client.list_step_functions().max_results(1).into_paginator().items().send().await;
let state_machines = items.collect::<Result<Vec<_>, _>>().await? That said, I would be a little surprised if that worked? I don't think there is any transformation that occurs. You can enable logging with the instructions here: https://docs.aws.amazon.com/sdk-for-rust/latest/dg/logging.html |
Beta Was this translation helpful? Give feedback.
-
gives
Which works. Then I try:
which gives:
Which works fine as well. I must have made an error in the handling of |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
interesting—I don't think you need to transform the next token. Did you try using the paginator? https://docs.rs/aws-sdk-sfn/latest/aws_sdk_sfn/client/struct.Client.html#method.list_state_machines
That said, I would be a little surprised if that worked? I don't think there is any transformation that occurs.
You can enable logging with the instructions here: https://docs.aws.amazon.com/sdk-for-rust/latest/dg/logging.html