We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when calling const upload = await bucket.upload(string, 'target'); Is there anything that needs to be configured on the bucket or such?
const upload = await bucket.upload(string, 'target');
The text was updated successfully, but these errors were encountered:
It works just fine on my end. I need to know what runtime you use.
Sorry, something went wrong.
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
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)
requestChecksumCalculation: 'WHEN_REQUIRED'
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.
No branches or pull requests
when calling
const upload = await bucket.upload(string, 'target');
Is there anything that needs to be configured on the bucket or such?
The text was updated successfully, but these errors were encountered: