httplib2.SSL握手错误 - Google Cloud Storage Python应用程序

0 投票
1 回答
765 浏览
提问于 2025-04-18 16:01

我们正在尝试从我们的存储桶中下载数据传输文件,使用的是下面链接中的 Python 云存储示例应用程序 chunked_transfer.py。

https://code.google.com/p/google-cloud-platform-samples/source/browse?repo=storage#git%252Ffile-transfer-json

但是当我运行这个应用程序时,它出现了下面的错误。请帮我解决这个问题,我需要尽快修复它……

Authenticating...
Constructing Google Cloud Storage service...
storage
Traceback (most recent call last):
  File "chunked_transfer.py", line 216, in <module>
    download(sys.argv)
  File "chunked_transfer.py", line 172, in download
    service = get_authenticated_service(RO_SCOPE)
  File "chunked_transfer.py", line 104, in get_authenticated_service
    return discovery_build('storage', 'v1beta1', http=http)
  File "/home/z062743/Venky_Google/oauth2client/util.py", line 132, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/z062743/Venky_Google/apiclient/discovery.py", line 194, in build
   resp, content = http.request(requested_url)
  File "/home/z062743/Venky_Google/oauth2client/util.py", line 132, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/z062743/Venky_Google/oauth2client/client.py", line 490, in new_request
    redirections, connection_type)
  File "/home/z062743/Venky_Google/httplib2/__init__.py", line 1571, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/home/z062743/Venky_Google/httplib2/__init__.py", line 1318, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/home/z062743/Venky_Google/httplib2/__init__.py", line 1253, in _conn_request
    conn.connect()
  File "/home/z062743/Venky_Google/httplib2/__init__.py", line 1045, in connect
    raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

1 个回答

0

这个问题在我们把网络上的SSL安全检查关掉后就解决了。

撰写回答