Skip to content

AWS S3 Java SDK does not support chunked encoding when putting objects to R2 buckets #27054

@dolukhanov

Description

@dolukhanov

Existing documentation URL(s)

https://developers.cloudflare.com/r2/examples/aws/aws-sdk-java/

What changes are you suggesting?

Show an example that when performing the putObject call via the Java AWS S3 SDK the S3Configuration must have:

S3Configuration serviceConfiguration = S3Configuration.builder().pathStyleAccessEnabled( true ) .chunkedEncodingEnabled( false ).build();

Otherwise, you get errors like:

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)

This may be applicable to other language SDKs also

Additional information

No response

Metadata

Metadata

Labels

content:editRequest for content editsdocumentationDocumentation editsproduct:r2R2 object storage: https://developers.cloudflare.com/r2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions