mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #1556] Calling bucket.file.exists always returns false #203
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#203
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 @VanPaitin on GitHub (Apr 11, 2024).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1556
Running the code above correctly creates a file in the bucket. When I check the logs, I see it makes a call to
POST /upload/storage/v1/b/api-video-song-renderer-bucket-test/o?name=shakaraSTART&uploadType=resumable&predefinedAcl=publicRead.However, when I try to check with:
I am always getting a false value meaning the file doesn't exist when it infact exists. I checked the logs and it was making calls to
GET /b/api-video-song-renderer-bucket-test/o/shakaraSTARTObserve that it doesn't prepend the endpoint with
/storage/v1. This is probably why I am getting a 404 error.@fsouza commented on GitHub (Apr 15, 2024):
How did you configure the node client to talk to fake-gcs-server?
@VanPaitin commented on GitHub (Apr 15, 2024):
Thanks @fsouza for your reply. I am configuring the client simply by setting the env variable: STORAGE_EMULATOR_HOST='http://localhost:4443'
@VanPaitin commented on GitHub (Apr 29, 2024):
@fsouza, should I expect a solution?
@fsouza commented on GitHub (Apr 30, 2024):
Can you provide exact steps for reproducing the issue?
I just tried to reproduce with the example in the repo and couldn't: https://github.com/fsouza/fake-gcs-server/pull/1585
If the client is not sending the correct request to the server, I assume the client is misconfigured.
@fsouza commented on GitHub (May 2, 2024):
Merged #1585, see that for an example on how to setup the Node client in a way where that method works.