mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #724] Getting a 404 with signed urls for GET call #123
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#123
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 @jasonford on GitHub (Mar 21, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/724
Thanks for the great software! I might be missing something basic, but I've given it a good search and have come up dry.
I'm generating a signed URL for a read action with the
@google-cloud/storagenpm module and receiving URLs of the form (default host manually swapped to point to my locally running container):I've started the docker container like so:
All GET calls to the above URL get a 404.
As a sanity check I made sure that GET calls with the format
http://10.0.1.1:4443/storage/v1/b/development-bucket/o/3f443741-70a6-11ec-afaf-6b31b4af5cd3work just fine.Is the signed URL format I'm getting from the nodejs sdk not supported? I found some resolved issues that seem to indicate otherwise, but I haven't been able to make this GET request work.
@jasonford commented on GitHub (Mar 21, 2022):
Didn't find it documented, but poking around in the code gave me a hint that what I needed was to set the "publicHost" option.
Now I run my docker container with:
and all is well.
Thanks again for the great software!