boto3 Read timeout error when listing snapshots #3266
Unanswered
gauravkcldcvr
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @gauravkcldcvr have you tried increasing the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using below config in script to list snapshots which is expected to be around 200,000 for the region (using pagination here). Have used the below config block to pass timeouts. (tried with 5000 as value too)
ec2_client = boto3.client('ec2',region_name='ap-south-1',config=Config(read_timeout=1000,connect_timeout=1000,retries={'max_attempts': 0}))
And it still returns the error -
anything i'm missing here which is causing this, or is it due to the high number of snapshots? can anyone suggest me how can this be fixed.
Without using pagination here, when used below block it gives the results of the 1000 snapshots, I believe this is happening due having the large number of data and it's failing to parse resulting in timeout error.
Beta Was this translation helpful? Give feedback.
All reactions