Skip to content

File upload to Storage fails silently #1712

Description

@liorsbg

Hello, I'm trying to upload a file to Storage from a Compute instance.
Following the example in the docs:

from gcloud import storage
client = storage.Client()
bucket = client.get_bucket('my-bucket-name')
blob = bucket.blob('my-test-file.txt')
blob.upload_from_string('this is test content!')

Nothing happens. No error message, no file created/uploaded in the bucket, blob.exists() returns False.

I don't think it's an access control/permissions thing as the bucket has default settings and I'm able to modify existing blobs.

Any leads on how to debug this?

Also, I think it would make sense to throw an exception or give some sort of indication/explanation that it failed.

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