Solution skill
PutObject fails with SignatureDoesNotMatch following release of 1.36
Complete solution
Shows how to fix putObject fails with SignatureDoesNotMatch following release of 1.36. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we ca": issue boto/boto3#4400 (closed, 32 comments): ### Describe the bug We're seeing intermittent signature errors when using boto3==1.36.x and botocore==1.36.x with S3 transfer acceleration enabled. Check your key and signing method. ``
botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.Steps
- Issue boto/boto3#4400 (closed, 32 comments): ### Describe the bug
- We're seeing intermittent signature errors when using
boto3==1.36.xandbotocore==1.36.xwith S3 transfer acceleration enabled. Either disabling transfer acceleration or downgrading to boto3==1.35.99 allows the upload to succeed.
botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.- - [x] Select this option if this issue appears to be a regression.
- [jonathan343 (maintainer)]: The SignatureDoesNotMatch errors with transfer acceleration on boto3 below 1.36.0 were server-side: an intermediary was modifying the Transfer-Encoding header before S3, breaking the signature. That issue is resolved. A separate problem: third-party S3-compatible providers had checksum errors on the 1.36.x line; confirmed workarounds are pinning boto3 below 1.36.0 or setting requestchecksumcalculation to when_required for low-level ops.
When to use
You are seeing this: Either disabling transfer acceleration or downgrading to boto3==1.35.99 allows the upload to succeed. `` botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated... Use this skill when you run into "PutObject fails with SignatureDoesNotMatch following release of 1.36".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: boto3 1.35.99, below 1.36.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In the GitHub issue gh:boto/boto3#4400 (https://github.com/boto/boto3/issues/4400), the problem reported was: Issue boto/boto3#4400 (closed, 32 comments): ### Describe the bug
We're seeing intermittent signature errors when using boto3==1.36.x and botocore==1.36.x with S3 transfer acceleration enabled. Either disabling transfer acceleration or downgrading to boto3==1.35.99 allows the upload to succeed.
botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.Regression Issue
- [x] Select this option if this issue appears to be a regression.
Expected... The verified resolution was: [jonathan343 (maintainer)]: The SignatureDoesNotMatch errors with transfer acceleration on boto3 below 1.36.0 were server-side: an intermediary was modifying the Transfer-Encoding header before S3, breaking the signature. That issue is resolved. A separate problem: third-party S3-compatible providers had checksum errors on the 1.36.x line; confirmed workarounds are pinning boto3 below 1.36.0 or setting requestchecksumcalculation to when_required for low-level ops.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_uDwo1iHfZFt-M2Fxumz0nA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">PutObject fails with SignatureDoesNotMatch following release of 1.36 <span>— Vectle</span></a>