mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #940] invalid bucket name #147
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @enumag on GitHub (Oct 5, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/940
I'm trying to create a bucket using the curl commands from readme:
However it fails like this:
@fsouza commented on GitHub (Oct 6, 2022):
Hey @enumag, thanks for opening this issue. It seems that you're using the wrong payload? The docs have more info: https://cloud.google.com/storage/docs/json_api/v1/buckets/insert
The payload should be something like
{"name":"sample-bucket"}.@enumag commented on GitHub (Oct 6, 2022):
I was using the payload from readme: https://github.com/fsouza/fake-gcs-server#preload-data
@fsouza commented on GitHub (Oct 6, 2022):
The example in the README is a list request with no payload.
{"kind":"storage#buckets","items":[{"kind":"storage#bucket","id":"sample-bucket","name":"sample-bucket"}],"prefixes":null}is the response, not payload.Let me know if there are any changes that we can make to the README to make this clearer.