V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lizunlong
V2EX  ›  Project Picky

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

  •  
  •   lizunlong · 2010-08-05 17:16:25 +08:00 · 5526 次点击
    这是一个创建于 5006 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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'
    6 条回复    1970-01-01 08:00:00 +08:00
    lizunlong
        1
    lizunlong  
    OP
       2010-08-05 17:19:11 +08:00
    不知道为什么,现在又自动好了~ 问题解除。
    Weakdancer
        2
    Weakdancer  
       2010-08-05 17:46:50 +08:00
    我的也是,经常出现。
    dofy
        3
    dofy  
       2010-08-05 17:48:15 +08:00
    可能是 API 请求次数超限了就没有 results 了吧
    fineao
        4
    fineao  
       2010-08-05 21:01:44 +08:00
    我也出现了
    貌似 GAE 的空间也不是想象中的那样稳定啊
    greatghoul
        5
    greatghoul  
       2010-08-06 18:39:37 +08:00
    我也出现了同样的问题,不知道什么时候能出个更新。。。。
    greatghoul
        6
    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']
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   916 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:41 · PVG 04:41 · LAX 13:41 · JFK 16:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.