-
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
V3 SDK s3 managed uploader fails with older api version - V2 is fine #2144
Comments
I have a feeling this is may be an issue with the custom S3 service implementation, but its curious that v2 works and v3 doesn't. Looks like the current version of s3 is In v3 we use service generated models to code generate the s3 client and upload wraps multipart upload from that generated s3 client. This is because the raw multipart upload is a pain to use. I've tested this with an extremely large file and it seems to work just fine for me against amazon's s3. Unfortunately, I'm having trouble reproducing the error against your custom endpoint. Can you let me know what the error looks like if we run an old school multipart upload? something like:
This code may need minor tinkering. |
hi @alexforsyth The upload failed the same way doing it the hard way. The response from the server that is triggering this error is:
The response gets thrown in inside However, my colleagues who run the service pointed me at #1814. If I manually patch Aws_restXml.js with the following:
Note the missing It works:
|
hi devs! any word on this ? @alexforsyth |
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue. |
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. |
Describe the bug
Using
Upload
from@aws-sdk/lib-storage
against a fake S3 endpoint (RadosGW running Ceph Nautilus.) fails. The V2 equivalent works fine with the same endpoint.Your environment
RadosGW running Ceph Nautilus. API Version: '2006-03-01'.
SDK version number
Is the issue in the browser/Node.js/ReactNative?
Node
Details of the browser/Node.js/ReactNative version
v14.16.0
Steps to reproduce
I've created a test with the v2 and v3 codes. https://github.com/marcolarosa/test-s3-multipart-upload.
Observed behavior
The V3 uploader fails with:
Expected behavior
Either it should be backwards compatible with responses from older API versions or fail early stating
that the API version is not compatible.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
From the operators of the fake S3 service:
The text was updated successfully, but these errors were encountered: