Google Drive SDK,Python客户端库中存在未处理的错误

2024-10-03 13:30:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我们复制并创建系统中可用的克隆Google文档。一般来说,它工作得很好,但是在一些未知的情况下,我们会遇到这种跟踪。在

使用: Python 上皮因 服务帐户 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如果有人面临同样的问题并找到了解决办法。在

提前谢谢。。。在

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

^{pr2}$

Tags: appsnoinpyapphomedatabase