在过去的几天里,我在与 Google Calendar API 交互的 GAE 应用程序中遇到了 DeadlineExceededErrors。据我所知,这些错误是零星的;昨晚我没有收到这些错误,而是在昨天的白天和现在的今天早上。当我在本地开发环境中运行时,我没有收到这些错误,这让我想知道 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
为什么现在在刷新过程中窒息?
编辑:我应该补充一点,我的应用程序也与 Facebook API 交互,我没有收到 DEE。