HTTPException:网址无效和/或缺少SSL证书:https://accounts.google.com/o/oauth2/token [英] HTTPException: invalid and/or missing SSL certificate for url: https://accounts.google.com/o/oauth2/token

查看:723
本文介绍了HTTPException:网址无效和/或缺少SSL证书:https://accounts.google.com/o/oauth2/token的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过Google AppEngine调用Google地球引擎(GEE)Python API时,它会抛出一个HTTPException,它指出 HTTPException:无效和/或缺少URL的SSL证书: https://accounts.google.com/o/oauth2/token 。该项目在新年假期前运行良好,但是当我在昨天测试它时,它突然爆发,没有对我自己的代码进行任何更改。

When I call for the Google Earth Engine (GEE) Python APIs through Google AppEngine, it throws out a HTTPException which says "HTTPException: invalid and/or missing SSL certificate for url: https://accounts.google.com/o/oauth2/token". The project runs well before the New Year's Holiday, but it suddenly broke out without any changes on my own codes when I tested it on yesterday.

详细的错误信息

The detailed error information

推荐答案

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

I am also experiencing the same issue in my python script with App Engine. It was running fine a few days ago and the certificate for accounts.google.com is valid until March, 9th 2017

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

it looks like the issue has been reported here a few hours ago : https://code.google.com/p/googleappengine/issues/detail?id=13477

这篇关于HTTPException:网址无效和/或缺少SSL证书:https://accounts.google.com/o/oauth2/token的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆