Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage: Unable to view object's metadata #10491

Closed
kondla opened this issue Sep 22, 2020 · 0 comments
Closed

Storage: Unable to view object's metadata #10491

kondla opened this issue Sep 22, 2020 · 0 comments
Assignees
Labels
api: storage Issues related to the Cloud Storage API. triage me I really want to be triaged.

Comments

@kondla
Copy link

kondla commented Sep 22, 2020

Unfortunately, I am unable to retrieve any metadata for a blob using this script:

from google.cloud import storage

storage_client = storage.Client()
bucket = storage_client.bucket("best bucket")
blob = bucket.get_blob("sweetest blob") # has metadata visible in the UI

metadata = blob.metadata # is none

Maybe it helps: the blob does not have the fixed metadata (content_type) either. This makes me wonder, if there is something similar to the .patch() thing going on. E.g. that another call to the object is necessary to load the metadata.

The existing answers are for patching or setting metadata. I have looked at your discussion and stackoverflow.

Regarding viewing there is one unresolved stackoverflow question.

Help is greatly appreciated!

@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Sep 22, 2020
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Sep 23, 2020
@kondla kondla closed this as completed Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants