Google云端硬盘SDK,Python客户端库中未处理的错误

时间:2013-03-21 14:14:00

标签: python google-app-engine google-drive-api

我们复制并创建我们系统中提供的克隆Google文档。一般来说它工作正常,但在一些未知的情况下,我们面临这种引用。

使用: 蟒蛇 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'

我们需要调试并知道为什么会发生这种情况,但这可能需要一些时间。所以如果任何一个人面临同样的问题并找到了解决办法的话。

提前致谢...

从错误堆栈添加另一条消息

An error occurred: <HttpError 503 when requesting https://www.googleapis.com/drive/v2/files/<dodc ID>/copy?pinned=true&alt=json returned "Backend Error">

0 个答案:

没有答案