-
Notifications
You must be signed in to change notification settings - Fork 211
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
Calling bucket.file.exists always returns false #1556
Comments
How did you configure the node client to talk to fake-gcs-server? |
Thanks @fsouza for your reply. I am configuring the client simply by setting the env variable: STORAGE_EMULATOR_HOST='http://localhost:4443' |
@fsouza, should I expect a solution? |
Can you provide exact steps for reproducing the issue? I just tried to reproduce with the example in the repo and couldn't: #1585 If the client is not sending the correct request to the server, I assume the client is misconfigured. |
Merged #1585, see that for an example on how to setup the Node client in a way where that method works. |
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/shakaraSTART
Observe that it doesn't prepend the endpoint with
/storage/v1
. This is probably why I am getting a 404 error.The text was updated successfully, but these errors were encountered: