Skip to content

Storage: TypeError in storage.Client() #9142

@Medical-Tribune-DevOpsTeam

Description

Hello.
I have been confronted with `TypeError' in trying 'storage.Client()' on Google App Engine (Python3.7 standard environment).

The cord was like this:

import flask
from google.cloud import storage
app = flask.Flask(__name__)

@app.route('/storage_test', method = ['POST'])
def storage_test():
	client = storage.Client()

I pushed this app with gcloud app deploy command, and send post request to the proper URL.
Then, I faced the following error:

TypeError: __init__() takes 2 positional arguments but 3 were given
at __init__ (/env/lib/python3.7/site-packages/google/cloud/storage/_http.py:35)
at __init__ (/env/lib/python3.7/site-packages/google/cloud/storage/client.py:110)
at storage_test (/srv/main.py:7)

Though I tried to downgrade to google-cloud-storage==1.18.0, it didn't work either.

I would appreciate it if you give us some reply.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.packagingtype: 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