Skip to content

Bucket is requester pays bucket but no user project provided. #4674

Closed
@renjithsraj

Description

@renjithsraj

While Try to upload CSV file to the google storage using google.cloud python packages, it's throwing

google.api_core.exceptions.BadRequest: 400 GET https://www.googleapis.com/storage/v1/b/<<bucket_name>>t?projection=noAcl: Bucket is requester pays bucket but no user project provided.
Process finished with exit code 1

Code:

from google.cloud import storage

client = storage.Client("project_name")
bucket = client.get_bucket('bucket_name')
blob = bucket.blob('  test_re.csv')
blob.upload_from_string('this is test content!')

please do help me

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions