mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #739] nodejs: always referencing http://storage:8080/ no matter how I change my environment variables #126
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#126
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 @iiian on GitHub (Apr 6, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/739
Heyo. So I'm using
nodejswithfsouza/fake-gcs-server, and my service is practically verbatim what you have in the node directory:However, when I try and save a file, without fail, I'm always confronted with, essentially, the following error:
Now of course,
storageis the name of my service, but I've tried both of:as my base client. same result regardless. Furthermore, I have tried both
apiEndpointsinside a docker network and external to a network (just in ats-node repl).The only solution left in my head is that there is a file getting cached somewhere for the
@google-cloud/storagenpm library. Anyway, maybe this is the wrong community to toss that into, but I thought I'd check here first.@iiian commented on GitHub (Apr 9, 2022):
Not sure what the problem was, but I've worked my way around it.
@kutsan commented on GitHub (May 21, 2025):
Not sure what the problem was either. Docs weren't good, but I managed to solve it using
-external-url http://storage:4443.storageis my container name.My
docker-compose.ymlfile: