システムで利用可能なGoogleドキュメントのクローンをコピーして作成します。一般的には問題なく動作していますが、いくつかの未知のシナリオでは、この種のトラックバックに直面します。
使用: Python Appengine サービス アカウント https://code.google.com/p/google-api-python-client/
トレースは次のとおりです。
doc = apiclient.copyFile("originalDocId",mimeType, description="Doc Template",defaultPermissions={ 'value': None , 'type': "anyone", 'role': "writer" })
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/googleAPIClientV3/locusClient.py", line 142, in copyFile
body=body).execute()
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/oauth2client/util.py", line 120, in positional_wrapper
return wrapped(*args, **kwargs)
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/apiclient/http.py", line 676, in execute
headers=self.headers)
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/oauth2client/util.py", line 120, in positional_wrapper
return wrapped(*args, **kwargs)
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/oauth2client/client.py", line 420, in new_request
redirections, connection_type)
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/httplib2/__init__.py", line 1436, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/httplib2/__init__.py", line 1188, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/base/data/home/apps/s~unkonown-app/ver-no-26-4/httplib2/__init__.py", line 1171, in _conn_request
content = response.read()
AttributeError: 'NoneType' object has no attribute 'read'
デバッグして、これが発生する理由を知る必要がありますが、時間がかかる場合があります。したがって、誰かが同じ問題に直面し、回避策を見つけた場合は、ppl.
前もって感謝します...
エラースタックから別のメッセージを追加する
An error occurred: <HttpError 503 when requesting https://www.googleapis.com/drive/v2/files/<dodc ID>/copy?pinned=true&alt=json returned "Backend Error">