-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response contains both an empty result list and a NextToken when using filters #2643
Comments
@stekern - Thank you for your post. It’s possible if the command has no invocations but it should not give NextToken. |
@swetashre The code I supplied above results in 23 requests being issued, and all of them have Since there in my case are usually only 0 or 1-2 running (i.e., For what it's worth, I'm getting the same behavior when issuing the same request using AWS CLI (v1.18.107). |
@stekern - Thank you for your post. The response what you are seeing is coming from service. That's why you are getting the same behavior in AWS CLI as well. |
What issue did you see ?
I am getting both an empty result list AND a
NextToken
when callingboto3.client("ssm").list_command_invocations
with a specific set of filters.What does this response mean? Can I safely stop querying the API when I receive the first empty response list, or do I have to keep querying until there's no
NextToken
in the response? The former approach takes 0.5s, while the latter takes around 15s -- so not a trivial difference. In both cases the end result is still an empty list.It is my understanding that the
Filters
argument applies the filters server-side. If I have to keep querying until there's noNextToken
, however, I could've just as well performed the filtering client-side.Steps to reproduce
The text was updated successfully, but these errors were encountered: