Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用GAE/Google API刷新访问令牌的死线超出错误_Python_Google App Engine_Google Api_Google Calendar Api - Fatal编程技术网

Python 使用GAE/Google API刷新访问令牌的死线超出错误

Python 使用GAE/Google API刷新访问令牌的死线超出错误,python,google-app-engine,google-api,google-calendar-api,Python,Google App Engine,Google Api,Google Calendar Api,在过去的几天里,我在与谷歌日历API交互的GAE应用程序中遇到了死线超标的错误。据我所知,这些错误是零星的;我昨晚没有犯这些错误,但昨天白天和今天早上都犯了这些错误。当我在本地开发环境上运行时,没有遇到这些错误,这让我想知道GAE服务器上发生了什么导致了这个问题,以及如何修复它 我试着将我的urlFetch截止日期设置为45-60天,但没什么不同。我还尝试构建一个具有高超时的HTTP对象,但这并不重要。日志如下所示: 2013-06-07 11:21:06.079 make: Got type

在过去的几天里,我在与谷歌日历API交互的GAE应用程序中遇到了死线超标的错误。据我所知,这些错误是零星的;我昨晚没有犯这些错误,但昨天白天和今天早上都犯了这些错误。当我在本地开发环境上运行时,没有遇到这些错误,这让我想知道GAE服务器上发生了什么导致了这个问题,以及如何修复它

我试着将我的urlFetch截止日期设置为45-60天,但没什么不同。我还尝试构建一个具有高超时的HTTP对象,但这并不重要。日志如下所示:

2013-06-07 11:21:06.079 make: Got type <class 'google.appengine.api.datastore_types.Blob'>
I 2013-06-07 11:21:06.081 validate: Got type <class 'oauth2client.client.OAuth2Credentials'>
I 2013-06-07 11:21:06.086 make: Got type <class 'google.appengine.api.datastore_types.Blob'>
I 2013-06-07 11:21:06.087 validate: Got type <class 'oauth2client.client.OAuth2Credentials'>
I 2013-06-07 11:21:06.093 make: Got type <class 'google.appengine.api.datastore_types.Blob'>
I 2013-06-07 11:21:06.093 validate: Got type <class 'oauth2client.client.OAuth2Credentials'>
I 2013-06-07 11:21:06.094 URL being requested: https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest?userIp=99.19.70.243
I 2013-06-07 11:21:06.153 URL being requested: https://www.googleapis.com/calendar/v3/calendars/primary/events?alt=json
I 2013-06-07 11:21:06.201 Refreshing due to a 401
I 2013-06-07 11:21:06.207 make: Got type <class 'google.appengine.api.datastore_types.Blob'>
I 2013-06-07 11:21:06.208 validate: Got type <class 'oauth2client.client.OAuth2Credentials'>
I 2013-06-07 11:21:06.208 Refreshing access_token
E 2013-06-07 11:21:15.989 Deadline exceeded while waiting for HTTP response from URL: https://accounts.google.com/o/oauth2/token Traceback (most recent call last): File "/py
2013-06-07 11:21:06.079品牌:Got类型
I 2013-06-07 11:21:06.081验证:获取类型
I 2013-06-07 11:21:06.086品牌:Got类型
I 2013-06-07 11:21:06.087验证:获取类型
I 2013-06-07 11:21:06.093制造:获得类型
I 2013-06-07 11:21:06.093验证:得到类型
I 2013-06-07 11:21:06.094请求的URL:https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest?userIp=99.19.70.243
I 2013-06-07 11:21:06.153请求的URL:https://www.googleapis.com/calendar/v3/calendars/primary/events?alt=json
I 2013-06-07 11:21:06.201因401而刷新
I 2013-06-07 11:21:06.207制造:获得类型
I 2013-06-07 11:21:06.208验证:得到类型
I 2013-06-07 11:21:06.208刷新访问令牌
E 2013-06-07 11:21:15.989等待URL的HTTP响应时超出了截止日期:https://accounts.google.com/o/oauth2/token 回溯(最后一次调用):文件“/py
为什么它现在会阻塞刷新过程


编辑:我应该补充一点,我的应用程序也与Facebook API交互,我没有因此收到DEE。

我想可能是因为这个问题

Google应用程序引擎URL获取服务到Google的问题 截至下午5:15已解析帐户身份验证终结点 2013年6月7日,美国/太平洋航空公司。对于由此带来的不便和不便,我们深表歉意 感谢您的耐心和持续支持,请放心 该系统的可靠性是谷歌的头等大事,我们正在努力 持续改进,使我们的系统更好