我正在关注用于从谷歌云存储上传和下载文件的示例python代码。我可以毫无问题地从云下载文件,但使用相同的python文件,当我尝试上传文件时,我收到以下错误。有关可能导致权限错误的原因的任何想法?
谢谢! 亚当
storage-file-transfer-json-python-master adamkglaser$ python chunked_transfer.py language_id.txt gs://adam_glaser_cloud_storage/test.txt
Authenticating...
Constructing Google Cloud Storage service...
Building upload request...
Uploading file: language_id.txt to bucket: adam_glaser_cloud_storage object: test.txt
Traceback (most recent call last):
File "chunked_transfer.py", line 217, in <module>
upload(sys.argv)
File "chunked_transfer.py", line 148, in upload
progress, response = request.next_chunk()
File "/Users/adamkglaser/anaconda/lib/python2.7/site-packages/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "/Users/adamkglaser/anaconda/lib/python2.7/site-packages/apiclient/http.py", line 808, in next_chunk
raise ResumableUploadError(resp, content)
apiclient.errors.ResumableUploadError: <HttpError 403 "Insufficient Permission">