boto3
boto3 copied to clipboard
on_done not called when token has expired
Describe the bug
If the token has expired, then the file isn't uploaded (expected), but on_done is not called and there's no way to get notification of the failure
(refiling https://github.com/boto/s3transfer/issues/304 here since I use s3transfer
through boto3
)
Expected Behavior
An error would be reported
Current Behavior
The upload silently fails
Reproduction Steps
- Create a token using
aws-vault
- Do an upload
- Verify success
- Wait for token to expire
- Do an upload
- Notice that no error is reported and
on_done
is never called
Possible Solution
Report an error using on_done
in the same way from before the expiration
Additional Information/Context
No response
SDK version used
1.34.97
Environment details (OS name and version, etc.)
Debian Bookworm with Python 3.12.3