Bucket name is being set twice in the endpoint URL #4570
Labels
bug
This issue is a bug.
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Checkboxes for prior research
Describe the bug
When calling
await new Upload({ client: s3, params: { Bucket: 'schema-service-test-local', Key: 'test', Body: "" } }).done();
, I get the following error:It appears the host is being set twice:
host: 'schema-service-test-local.schema-service-test-local.s3.eu-central-1.amazonaws.com',
Note: I have changed the bucket name in the example.
SDK version number
@aws-sdk/[email protected], @aws-sdk/[email protected],
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v16.14.0
Reproduction Steps
Observed Behavior
Expected Behavior
I expected the host to be
schema-service-test-local.s3.eu-central-1.amazonaws.com
and for the request to succeed.Possible Solution
No response
Additional Information/Context
A possibly related issue was posted here (not by me): https://stackoverflow.com/questions/74545781/bucket-name-duplicated-in-aws-s3-file-location
And here: anacronw/multer-s3#192
The text was updated successfully, but these errors were encountered: