The request signature we calculated does not match the signature you provided

For Workers & Pages, what is the name of the domain?

Issue is not related to “Workers & Pages”. It is with R2

What is the error number?

403

What is the error message?

software.amazon.awssdk.services.s3.model.S3Exception: The request signature we calculated does not match the signature you provided. Check your secret access key and signing method. (Service: S3, Status Code: 403, Request ID: null)]

What is the issue or error you’re encountering

I’m using Java AWS S3 SDK for uploading files to R2. Files lesser than 100KB uploads fine, but files above 100KB fails with the said error.

What steps have you taken to resolve the issue?

Downgrading S3 SDK to version “2.26.21” worked fine.

What are the steps to reproduce the issue?

Use the latest version of Java AWS S3 SDK and upload a file bigger than 100KB.

software.amazon.awssdk s3 2.30.26

I’m having the same problem in .NET with AWSSDK.S3 version 3.7.415.

Downgrading the SDK to version 3.7.405.10 solves the problem.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.