Skip to content
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

Should boto3 automatically batch requests to avoid FilterLimitExceeded? #1099

Closed
nchammas opened this issue May 23, 2017 · 3 comments
Closed
Labels
closed-for-staleness feature-request This issue requests a feature.

Comments

@nchammas
Copy link

nchammas commented May 23, 2017

If you do something like this

ec2.instances.filter(
    Filters=[
        {'Name': 'instance-id', 'Values': [i['InstanceId'] for i in instances]}
    ]))

where len(instances) > 200, you will get the following error:

An error occurred (FilterLimitExceeded) when calling the DescribeInstances operation:
The maximum number of filter values specified on a single call is 200

This seems like something boto3 should handle for the user, but I'm not sure. Should boto3 be responsible for batching requests where needed, like in this case, to avoid FilterLimitExceeded, or is that on us?

Related:

@JordonPhillips
Copy link
Contributor

We typically don't do automatic batch handling unless explicitly called out. The only cases I'm aware of are the dynamodb batch get/write operations. For now you'll have to manually handle that.

It would be great to have this feature more generally, so marking as a feature request.

@JordonPhillips JordonPhillips added the feature-request This issue requests a feature. label May 25, 2017
@larroy
Copy link

larroy commented Jul 25, 2018

I'm affected

@github-actions
Copy link

Greetings! It looks like this issue hasn’t been active in longer than two years. We encourage you to check if this is still an issue in the latest release. Because it has been longer than two years since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment to prevent automatic closure, or if the issue is already closed, please feel free to reopen it.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness feature-request This issue requests a feature.
Projects
None yet
Development

No branches or pull requests

3 participants