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.
Hello.
I have been confronted with `TypeError' in trying 'storage.Client()' on Google App Engine (Python3.7 standard environment).
The cord was like this:
I pushed this app with
gcloud app deploycommand, and send post request to the proper URL.Then, I faced the following error:
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.