[GH-ISSUE #53] Trying to download blob calls original googleapis url #2163

Closed
opened 2026-03-15 17:49:29 +03:00 by kerem · 2 comments
Owner

Originally created by @kye308 on GitHub (Aug 3, 2019).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/53

Hi, thanks for all the great work so far! I'm interested in downloading files with the server and am not sure if that is supported right now.

I can follow the steps in the readme to get a blob object. I would like to call blob.download_as_string() (or any similar download function) but when I do, I get

Unauthorized: 401 GET https://www.googleapis.com/download/storage/v1/b/<bucket>/o<object_name>?alt=media: (u'Request failed with status code', 401, u'Expected one of', 200, 206)

Is this expected? Wasn't sure if blob download is supported atm.

Originally created by @kye308 on GitHub (Aug 3, 2019). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/53 Hi, thanks for all the great work so far! I'm interested in downloading files with the server and am not sure if that is supported right now. I can follow the steps in the readme to get a blob object. I would like to call `blob.download_as_string()` (or any similar download function) but when I do, I get ``` Unauthorized: 401 GET https://www.googleapis.com/download/storage/v1/b/<bucket>/o<object_name>?alt=media: (u'Request failed with status code', 401, u'Expected one of', 200, 206) ``` Is this expected? Wasn't sure if blob download is supported atm.
kerem closed this issue 2026-03-15 17:49:34 +03:00
Author
Owner

@fsouza commented on GitHub (Aug 6, 2019):

Hi @kye308 can you try the example from the examples folder?

<!-- gh-comment-id:518470434 --> @fsouza commented on GitHub (Aug 6, 2019): Hi @kye308 can you try the example from the [examples](https://github.com/fsouza/fake-gcs-server/tree/master/examples/python) folder?
Author
Owner

@fsouza commented on GitHub (Aug 7, 2019):

I just replaced the snippet with a direct link. The script is also being tested in our CI environment now, so we should be good!

Please feel free to reopen if you still encounter this issue.

<!-- gh-comment-id:518900842 --> @fsouza commented on GitHub (Aug 7, 2019): I just replaced the snippet with a direct link. The script is also being tested in our CI environment now, so we should be good! Please feel free to reopen if you still encounter this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#2163
No description provided.