【发布时间】:2013-04-04 06:10:08
【问题描述】:
在 Python AppEngine 上出现以下错误:
HTTPException: 等待来自 URL: https://www.googleapis.com/books/v1/users/115429583296661000087/bookshelves/1001/volumes?maxResults=12&startIndex=0 的 HTTP 响应时超出了期限
URL 是 .json 格式,我通过我的应用程序中的以下代码获取它:
request = urllib2.Request(bookShelfUrl, None, {'Content-Type': 'application/json'})
bookShelfJsonRaw = urllib2.urlopen(request)
bookShelfJsonObject = json.load(bookShelfJsonRaw)
在 localhost 中测试时工作正常,只会在生产中出错。直到今天它神秘地开始返回该错误时,它在生产中也运行良好。
有什么想法吗?
【问题讨论】:
标签: google-app-engine python-2.7