-
Notifications
You must be signed in to change notification settings - Fork 605
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
Complete multipart upload fails with XMLMalformed error #2445
Comments
Moving it to the correct repo. |
Hello, Are there any update on this? The issue is a blocker for us. It seems there is no good workaround to solve it. Thank you in advance |
Added reviewers to the PR, waiting for a review. |
Hi Guys! We are using the Upload method from the lib-storage package, and it's also throwing the same |
This bug is still present on version v3.22. Multi-part upload is unusable because it cannot be completed. This is a blocker for midsize and large uploads. |
I get this error even when I patch the library manually to correct the This is what Chrome says the library is sending (with the patch):
|
@lafiosca might need to add |
Thanks for the tip @brettstack, looks promising. Unfortunately for me, I already worked around the problem and decided I didn't need multipart upload for my solution. |
You can replace the invalid XML using a middleware as a workaround, link: |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
SDK: @aws-sdk/client-s3
Version: 3.15.0
S3 API service: Noobaa v5
Describe the problem
While implementing S3 multi-part upload with the SDK we have got the following error when calling the complete method after each parts had been uploaded successfully by using pre-signed URLs.
Sample code:
As I observed based on the code base the issue is caused by a miss-spelled XML element name. The request has CompletedMultipartUpload node name instead of CompleteMultipartUpload:
Manual workaround
After manually updating the corresponding script(
node_modules\@aws-sdk\client-s3\dist\cjs\protocols\Aws_restXml.j
s) under the node_modules to fix the element name (CompletedMultipartUpload --> CompleteMultipartUpload) the complete operation successfully completed.AWS Request Reference
https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html
The text was updated successfully, but these errors were encountered: