Skip to content

Downloading factory blob fails because media_link isn't available #1555

Description

@jlowin

Creating a blob like this loads the blob's properties, so downloading works (if it exists) since the download_url is available:

blob = client.bucket(bucket_name).get_blob(blob_name)
blob.download_as_string() # works

But this doesn't load properties, so the download fails (even in the blob is valid):

blob = client.bucket(bucket_name).blob(blob_name) # note .blob() instead of .get_blob()
blob.download_as_string() # fail, no URI

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions