mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #636] 404 when uploading to empty storage #111
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#111
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 @bkondakor on GitHub (Dec 15, 2021).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/636
When I start with a new empty instance and try to upload to it, it throws 404 error.
If I initialise it with some data, it works.
@fsouza commented on GitHub (Dec 29, 2021):
@bkondakor you may need to create the bucket before uploading to it. Can you share the code that you used to try to upload the file? Thanks!
@modosc commented on GitHub (Jan 31, 2022):
we're seeing the same issue. even with buckets created in the
/datadirectory this call always fails:this is with
@google-cloud/storage@5.18.1@modosc commented on GitHub (Jun 2, 2022):
btw the solution we found was to add an empty file in the (empty) bucket directory. now we can reliably start a server and have all of our buckets exist .
@fsouza commented on GitHub (Jun 2, 2022):
@modosc can you provide a reproducer?
@yassenb commented on GitHub (Apr 8, 2025):
Encountered the same issue. Should be trivial to reproduce - create a new bucket and then try to upload via a PUT request to a sub-directory in the bucket. 404 is returned. When an empty file is added after creating the bucket it works. @modosc , thanks a lot for the workaround.