Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get NotImplemented: Header 'x-amz-checksum-crc32' with value '8FJbTw== #12

Closed
fabianmu opened this issue Jan 15, 2025 · 3 comments
Closed

Comments

@fabianmu
Copy link

when calling const upload = await bucket.upload(string, 'target');
Is there anything that needs to be configured on the bucket or such?

@f2face
Copy link
Owner

f2face commented Jan 16, 2025

It works just fine on my end. I need to know what runtime you use.

@tenpaiyomi
Copy link

tenpaiyomi commented Jan 16, 2025

I'm getting this as well.

Node v20.18.1, package version 0.4.1.

EDIT: Appears that a release of the s3 client library that went out ~20 hours ago is the cause of the break

https://community.cloudflare.com/t/aws-sdk-client-s3-v3-729-0-breaks-uploadpart-and-putobject-r2-s3-api-compatibility/758637/7

@f2face
Copy link
Owner

f2face commented Jan 17, 2025

I'm getting this as well.

Node v20.18.1, package version 0.4.1.

EDIT: Appears that a release of the s3 client library that went out ~20 hours ago is the cause of the break

https://community.cloudflare.com/t/aws-sdk-client-s3-v3-729-0-breaks-uploadpart-and-putobject-r2-s3-api-compatibility/758637/7

Alright, you can override the S3 client config with requestChecksumCalculation: 'WHEN_REQUIRED' like this:
(Based on the link you provided)

const r2 = new R2({
    accountId: '<R2_ACCOUNT_ID>',
    accessKeyId: '<R2_ACCESS_KEY_ID>',
    secretAccessKey: '<R2_SECRET_ACCESS_KEY>',
}, {
    requestChecksumCalculation: 'WHEN_REQUIRED'
});

I haven't test it, though.
Please let me know if it works.
Thank you.

@f2face f2face closed this as completed Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants