-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.