PutObject and DeleteObject is failing with latest version of boto3==1.37
Describe the bug
Facing following error with Python 3.11 and boto3 latest version 1.37:
An error occurred (XAmzContentSHA256Mism
atch) when calling the PutObject operation: The Content-SHA256 you specified did not match what we received.
For now, downgraded to boto3==1.35.48, and everything is running as expected.
Regression Issue
- [x] Select this option if this issue appears to be a regression.
Expected Behavior
PutObject and DeleteObject to run successfully as it was till boto3==1.35.48 version.
Current Behavior
Facing following error:
An error occurred (XAmzContentSHA256Mism
atch) when calling the PutObject operation: The Content-SHA256 you specified did not match what we received.
Reproduction Steps
s3_connection = boto3.resource('s3') s3_connection.Object(bucket_name, dummy_folder_path).put(Body='')
Possible Solution
No response
Additional Information/Context
No response
SDK version used
Not sure
Environment details (OS name and version, etc.)
Linux with Python3.11 and boto3==1.37.23
Hi @rbilaiya , I tried on the version 1.37.23 and the latest version: 1.37.29 and I did not see any issues on any of them for PutObject and DeleteObject. For logging, can you add the line boto3.set_stream_logger('') on the version that works and that doesn't work and please provide it to us. Thank you.
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. 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 or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.
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.