目前,我正在尝试允许用户通过我的python API将个人资料图片上传到firestore存储桶中。我正在尝试以请求数据的形式发送图像。然而,当我尝试上传图片时,我得到了以下错误,"TypeError: cannot use a string pattern on a bytes-like object“,如下所示: @users_endpoints.routereturn no_auth_token_response()
# uid, utype = auth.decode_auth_
我在Linux上使用Python2.7.9,在Google-Cloud Server SDK上使用谷歌的。我的目标是上传一张图片到Google Cloud Platform,但是我得到了下面的错误。'NoneType' object has no attribute代码:from google.cloud= storage_client