lizunlong

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

  •  
  •   lizunlong · Aug 5, 2010 · 6564 views
    This topic created in 5765 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    lizunlong
        1
    lizunlong  
    OP
       Aug 5, 2010
    不知道为什么,现在又自动好了~ 问题解除。
    Weakdancer
        2
    Weakdancer  
       Aug 5, 2010
    我的也是,经常出现。
    dofy
        3
    dofy  
       Aug 5, 2010
    可能是 API 请求次数超限了就没有 results 了吧
    fineao
        4
    fineao  
       Aug 5, 2010
    我也出现了
    貌似 GAE 的空间也不是想象中的那样稳定啊
    greatghoul
        5
    greatghoul  
       Aug 6, 2010
    我也出现了同样的问题,不知道什么时候能出个更新。。。。
    greatghoul
        6
    greatghoul  
       Aug 7, 2010
    注释掉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']
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5408 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 03:41 · PVG 11:41 · LAX 20:41 · JFK 23:41
    ♥ Do have faith in what you're doing.