-
Notifications
You must be signed in to change notification settings - Fork 248
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
Paginators return error when next token is not present #405
Comments
thanks for the report! I see the problem and will get a fix out soon |
The fix has landed, you can test it out prior to the the next release with:
|
I can confirm it works with |
|
Keeping the issue open until it's in a release in case other folks run into it. A new release should go out soon |
landed in 0.5.2 |
|
What is the problem?
While migrating my code that does various
ec2::describe_XXX
calls to use the new paginator available in0.4.x
I am hitting theIt feels like it happens when there are only a few items to fetch from the service, but I have no clear proof for it. Looping manually passing tokens from the previous call to the next one works as expected.
Version
Platform
Darwin hellride 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64
AWS Services
I have tried this with ec2 and cloudformation
Description
Here is the code snippet that produces the error:
Logs
Response from the AWS service
``` 2022-01-18T15:01:56.863335Z TRACE aws_smithy_http::middleware: http_response=Response { status: 200, version: HTTP/1.1, headers: {"x-amzn-requestid": "ef502f55-3764-4362-a0d0-be5090febfce", "cache-control": "no-cache, no-store", "strict-transport-security": "max-age=31536000; includeSubDomains", "vary": "accept-encoding", "content-type": "text/xml;charset=UTF-8", "content-length": "2427", "date": "Tue, 18 Jan 2022 15:01:56 GMT", "server": "AmazonEC2"}, body: b"\n\n ef502f55-374-4332-a0c0-bc6090febfce\n \n \n vpc-xxxxxxxxxxxxxxxxx\n xxxxxxxxxxxx\n available\n 10.16.1.192/28\n \n \n 10.16.1.192/28\n vpc-cidr-assoc-xxxxxxxxxxxxxxxxx\n \n associated\n \n \n \n 10.112.1.192/28\n vpc-cidr-assoc-xxxxxxxxxxxxxxxxx\n \n associated\n \n \n \n 10.16.1.208/28\n vpc-cidr-assoc-xxxxxxxxxxxxxxxxx\n \n associated\n \n \n \n 10.112.1.208/28\n vpc-cidr-assoc-xxxxxxxxxxxxxxxxx\n \n associated\n \n \n \n dopt-xxxxxxxx\n \n \n sigs.k8s.io/cluster-api-provider-aws/cluster/mgmt2\n owned\n \n \n sigs.k8s.io/cluster-api-provider-aws/role\n common\n \n \n Name\n mgmt2-vpc\n \n \n default\n false\n \n \n" } ```It seems there is no next token at all (implying there is no next page and all the requested data is present?)
The text was updated successfully, but these errors were encountered: