mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #196] Error - Download file #2180
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#2180
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 @WillRy on GitHub (Mar 19, 2020).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/196
Hello everyone,
Sorry to bother opening an issue, but I have a question about the implementation, because I'm having an error when trying to download a file.
When downloading the file with the code:
The error comes from: newReader
Error:
storage: object doesn't exist
If I access the file via URL, I can do it normally.
The repository for my application is this:
https://github.com/WillRy/golang-gcs-test
obs. I have files pre-loaded through volumes, in docker-compose.yaml
Did I make a mistake?
Thank you very much in advance.
@fsouza commented on GitHub (Mar 20, 2020):
Hey there, thanks for opening the issue and providing a reproducer! You need to set the public-host and use that in your client.
I've updated the Go example to show how to do that:
github.com/fsouza/fake-gcs-server@4ad5c60b79.@WillRy commented on GitHub (Mar 21, 2020):
This tool is extremely useful, thanks for the help