You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using download_fileobj to get an s3 object in an environment with urllib3 version 2.x a tcp connection reset while streaming the response body will not be retried.
This is retried correctly when using urllib3 version 1.x
Expected Behavior
The request should be retried according to the configured policy
Current Behavior
botocore.exceptions.ResponseStreamingError is raised to the caller after only a single request attempt.
Reproduction Steps
Given the following script that simulates an unreliable network connection:
Observe that only a single request is made and the following exception is raised:
botocore.exceptions.ResponseStreamingError: An error occurred while reading from response stream: ('Connection broken: IncompleteRead(1000 bytes read, 9000 more expected)', IncompleteRead(1000 bytes read, 9000 more expected))
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
When using
download_fileobj
to get an s3 object in an environment withurllib3
version 2.x a tcp connection reset while streaming the response body will not be retried.This is retried correctly when using
urllib3
version 1.xExpected Behavior
The request should be retried according to the configured policy
Current Behavior
botocore.exceptions.ResponseStreamingError
is raised to the caller after only a single request attempt.Reproduction Steps
Given the following script that simulates an unreliable network connection:
and the following conda environment:
Observe that only a single request is made and the following exception is raised:
and with the following conda environment:
Observe that multiple request attempts are made and the following exception is correctly raised:
Possible Solution
No response
Additional Information/Context
No response
SDK version used
boto3 1.34.53
Environment details (OS name and version, etc.)
Python 3.11
The text was updated successfully, but these errors were encountered: