刚刚登陆 Picky 后台,出错,请求帮助

2010-08-05 17:16:25 +08:00
 lizunlong
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/base/data/home/apps/lzl-picky/1-2-beta.343821948885463264/writer.py", line 211, in get
if len(mentions_twitter['results']) > 0:
KeyError: 'results'
5640 次点击
所在节点    Project Picky
6 条回复
lizunlong
2010-08-05 17:19:11 +08:00
不知道为什么,现在又自动好了~ 问题解除。
Weakdancer
2010-08-05 17:46:50 +08:00
我的也是,经常出现。
dofy
2010-08-05 17:48:15 +08:00
可能是 API 请求次数超限了就没有 results 了吧
fineao
2010-08-05 21:01:44 +08:00
我也出现了
貌似 GAE 的空间也不是想象中的那样稳定啊
greatghoul
2010-08-06 18:39:37 +08:00
我也出现了同样的问题,不知道什么时候能出个更新。。。。
greatghoul
2010-08-07 16:15:23 +08:00
注释掉writer.py中以下代码,暂可解决问题, 大约201行开始

# mentions_twitter = memcache.get('mentions_twitter')
# if mentions_twitter is None:
# try:
# result = urlfetch.fetch(TWITTER_API_ROOT + 'search.json?q=' + urllib.quote(q))
# if result.status_code == 200:
# mentions_twitter = simplejson.loads(result.content)
# memcache.add('mentions_twitter', mentions_twitter, 3600)
# except:
# mentions_twitter = None
# if mentions_twitter is not None:
# if len(mentions_twitter['results']) > 0:
# template_values['mentions_twitter'] = mentions_twitter['results']

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1362

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX