-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Missing ETag from S3 UploadPart response #1362
Comments
@madsborup are you working on this issue? |
Same here! I am experiencing the same thing. Whether using the Upload functionality from @aws-sdk/lib-storage or just using the aws-sdk/client-s3 everything works fine except that the ETag is not being propagated back to the code so the uploads will never complete. |
@madsborup Are you currently working on this issue? |
@cboycecollab No, I contacted support but haven't received any updates... |
@madsborup Okay no worries, I honestly surprised that nobody else has mentioned this as an issue. It makes the S3 functionality useless from when uploading from the front-end |
Hello, guys i'm looking into this |
By the first look, it seems that we have a test covering this. however, I'm digging deeper |
Got it, i believe the issue is at the cloudflare level, where the etag is getting modified / removed. Stay tuned |
@fenos you are the goat thank you for looking into this. I am curious though, how did you come to the conclusion that it was an issue at the cloudflare level? Additionally, from what you've been able to uncover, does there seem to be any immediate workarounds? |
The test is passing locally regarding the Etag, as I was debugging it locally I couldn't find anything wrong with it. However, I had a couple of instances where cloudflare was changing the request to storage and I had to patch it with custom page rules. after reading how they handle etags in headers it looks like they are issue, which can be disabled. We use cloudflare in front of storage at the moment hence is very likely this is the issue. I'll send a patch sometimes next week 👍🏻 |
Really appreciate it dude! Yeah the upload worked fine as long as there was only one chunk in the upload but as soon as there was multiple chunks it started screaming about the ETag. |
@fenos please let me know when / if you get a chance to submit a PR for this! |
hey, I'm getting the exact same issue of etag not being accessible in the headers of the response within a react js component, however this is occurring for me on the local docker supabase instance i'm testing with. I am using signedUrl instead of the s3 client as i am working client-side, but getting the signed url via an api call to the server. The signedUrl functionality is working as expected for the other multipart related calls. Assuming this is a CORS issue on my local instance, i'm struggling on how i can override the CORS setting anywhere. |
Bug report
Describe the bug
Similar to aws/aws-sdk-js-v3#5708
I'm trying to implement MultiPartUpload using the AWS S3 client, but the response object of UploadPart does not include the ETag property, though it's included in the HTTP response. I suspect this may be due to ETag header not allowed in CORS settings (as mentioned in the above similar issue).
To Reproduce
Expected behavior
ETag property should be present in uploadPartResponse object.
Screenshots
System information
The text was updated successfully, but these errors were encountered: