gpt4 book ai didi

python-2.7 - HTTPException:URL 的 SSL 证书无效和/或丢失:https://accounts.google.com/o/oauth2/token

转载 作者:太空宇宙 更新时间:2023-11-03 12:41:01 24 4
gpt4 key购买 nike

当我通过 Google AppEngine 调用 Google Earth Engine (GEE) Python API 时,它会抛出一个 HTTPException,其中显示“HTTPException:无效和/或缺少 URL 的 SSL 证书:https://accounts.google.com/o/oauth2/token ”。项目在元旦放假前运行的很好,但是昨天测试的时候自己的代码没有任何改动就突然爆发了。

The detailed error information

最佳答案

我在使用 App Engine 的 python 脚本中也遇到了同样的问题。几天前运行良好,accounts.google.com 的证书有效期至 2017 年 3 月 9 日

File "/Users/QQQ/Documents/Developpements/ae-python-project/app/user_spreadsheet_auth.py", line 55, in _get_service
service = build('sheets', 'v4', http=http_auth)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/googleapiclient/discovery.py", line 222, in build
cache)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/googleapiclient/discovery.py", line 269, in _retrieve_discovery_doc
resp, content = http.request(actual_url)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/oauth2client/transport.py", line 159, in new_request
credentials._refresh(orig_request_method)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/oauth2client/client.py", line 744, in _refresh
self._do_refresh_request(http)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/oauth2client/client.py", line 775, in _do_refresh_request
body=body, headers=headers)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/oauth2client/transport.py", line 282, in request
connection_type=connection_type)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/httplib2/__init__.py", line 1609, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/httplib2/__init__.py", line 1351, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/Users/QQQ/Documents/Developpements/ae-python-project/libs/httplib2/__init__.py", line 1307, in _conn_request
response = conn.getresponse()
File "/Users/QQQ/google-cloud-sdk/platform/google_appengine/google/appengine/dist27/gae_override/httplib.py", line 532, in getresponse
raise HTTPException(str(e))
HTTPException: Invalid and/or missing SSL certificate for URL: https://accounts.google.com/o/oauth2/token

编辑:看起来这个问题是几个小时前在这里报告的:https://code.google.com/p/googleappengine/issues/detail?id=13477

关于python-2.7 - HTTPException:URL 的 SSL 证书无效和/或丢失:https://accounts.google.com/o/oauth2/token,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41436320/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com