我想让Django(在GAE之上)从另一个Web服务获取数据。我经常打错误是这样的:如何在Google App Engine中为urlfetch设置超时时间?
ApplicationError: 2 timed out Request
Method: GET
Request URL: http://localhost:8080/
Exception Type: DownloadError
Exception Value: ApplicationError: 2 timed out
Exception Location: /google_appengine/google/appengine/api/urlfetch.py in _get_fetch_result, line 325
感觉,就好像它会超时仅12秒后(我不知道,但它是真的很短)。
问题:如何设置更长的超时时间?
好的,我可以知道为什么你决定用Java回答这个问题,当OP明确表示他使用Django时?您没有提供python等价物:( – kassold
其他人在我给了它两年后编辑了我的答案,并由于某种原因添加到Java代码段中......如果您查看第一行中的超链接,它们链接到Python文档在这里给出了一个Python例子Alex Young的回答 –
你链接到的文档不再包含任何提及最多60秒的时间,这个限制是否被弃用? – conradlee