-
Notifications
You must be signed in to change notification settings - Fork 394
Open
Labels
api: storageIssues related to the googleapis/nodejs-storage API.Issues related to the googleapis/nodejs-storage API.
Description
Please make sure you have searched for information in the following guides.
- Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
- Check our Troubleshooting guide: https://github.com/googleapis/google-cloud-node/blob/main/docs/troubleshooting.md
- Check our FAQ: https://github.com/googleapis/google-cloud-node/blob/main/docs/faq.md
- Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
- Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
- Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples
A screenshot that you have tested with "Try this API".
Not applicable.
Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.
https://gist.github.com/7hokerz/9507293382bb71c91f9de9352f851268
A step-by-step description of how to reproduce the issue, based on the linked reproduction.
- Set the
STORAGE_EMULATOR_HOSTenvironment variable (e.g.,http://127.0.0.1:9199). - Call
generateSignedPostPolicyV4(...). - Observe the url property in the response object.
A clear and concise description of what the bug is, and what you expected to happen.
Expected: url: 'http://127.0.0.1:9199/my-test-bucket'
When running in emulator mode, generateSignedPostPolicyV4 returns the base emulator host URL (e.g., http://127.0.0.1:9199) without appending the bucket name.
Observed: url: 'http://127.0.0.1:9199'
A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
the API endpoint in the emulator requires the bucket name to be part of the path (path-style) to route the request correctly.
referencing: https://docs.cloud.google.com/storage/docs/xml-api/post-object-forms
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/nodejs-storage API.Issues related to the googleapis/nodejs-storage API.