-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Node API requests ignore the endpoint.path property #268
Comments
What version of the SDK are you using? This was previously reported and fixed in #202. The latest version (2.0.0-rc.14) contains logic to handle adding the path portion of the endpoint to the URI. |
Sorry, I had the ~ operator on the dependency version, causing my to check On Wed, Apr 30, 2014 at 11:46 PM, Loren Segal notifications@github.comwrote:
|
Closing since this is resolved. |
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. |
In lib/http/node.js, during the generation of AWS.NodeHttpClient, the path prefix is set only if httpOptions is set. In case a custom Endpoint is used with path defined, the request will be sent without it.
For example, after using the following AWS.S3() configuration:
Executing an
s3.putObject({Bucket:'bucket', Key:'file.txt'})
command will issue aPUT
request tohttp://localhost:9444/bucket/file.txt
instead ofhttp://localhost:9444/s3/bucket/file.txt
.It looks like the following patch resolves it:
The text was updated successfully, but these errors were encountered: