-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Retry configuration is ignored after call to get_available_regions() #1698
Comments
Interesting. I can reproduce. Looking into it. |
Looks like the problem is that |
Just some additional info on the comment in the get_service_data handler
A couple of other options we have if we don't want to remove the retry handler registration in
However, my preference would be to remove the retry code in What do you all think? |
The fix to remove the retry handler in |
I'm having trouble to use a non-default retry-configuration. After some debugging, I've encountered some unexpected behaviour that I consider a bug.
Code to reproduce the issue:
The code needs to run with valid credentials configured (I used environment variables for my tests, but I don't thing it matters). Also, you need to fill in a valid ARN of an Elastic Beanstalk Environment to query. (I think the bug is not related to Beanstalk, but that is what I've used to debug the issue on).
The expected behaviour is for this code to hammer the API, and hit the Throttle limit. The
list_tags_for_resource()
call will then raise aClientError
explaining the issue.The actual behaviour is that this code enters the final
if
, and prints out a successfull response that was retried more than 2 times, while the config is set to try at most 2 times.Commenting out the
get_available_regions()
call, yields the expected behaviour. So it seams that this call changes some internal state of the session that causes later issues.The text was updated successfully, but these errors were encountered: