-
-
Notifications
You must be signed in to change notification settings - Fork 610
Upload to S3-compatible storage (Cloudflare R2) fails with getUTCFullYear error #4501
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
Comments
Hi @stefanpoensgen from that version we upgraded to @aws-sdk/client-s3 v3. I run min.io and seen that people have it working with S3, I wonder if there could be a setting that you use that trigger that error? Can you show me which S3 settings you use? |
Hi @soulgalore, Thank you for your quick reply.
|
Ok thank looks ok, except I haven't seen "auto" before but maybe work? There where two breaking changes when we upgraded, one that you need to set region and the other that the endpoint needs to start with http/https. https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#breaking-2 |
Region auto is a Cloudflare thing. https://developers.cloudflare.com/r2/api/s3/api/#bucket-region |
Ok, it looks like "Expires" has changed between versions. In the old version you could set a int or a date, in the new version it only works with date: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/PutObjectCommand/ However we don't set expires automatically in sitespeed.io, you are sure you don't have that parameter? I can make a fix later this week and check if its an integer and convert it (the old one looked like |
I merged a fix in main if you use s3.params.Expires, I will release it later this weekend. |
Thank you, it's working now! |
Since upgrading to [email protected], I'm encountering an error when uploading the test results to Cloudflare R2 (S3-compatible). The performance tests complete successfully, but the upload phase fails with the following error:
Any hints or ideas would be greatly appreciated — thanks a lot for your work and support!
The text was updated successfully, but these errors were encountered: