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

进入后台出现如下的错误

  •  
  •   seanwang · 2010-10-07 15:53:18 +08:00 · 9025 次点击
    这是一个创建于 4943 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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/suzhoukeblog/1.345322999458455619/twitter.py", line 44, in get
    lists = api.GetLists()
    File "/base/data/home/apps/suzhoukeblog/1.345322999458455619/v2ex/picky/ext/twitter.py", line 1545, in GetLists
    url = TWITTER_API_ROOT + '/' + self._username + '/lists.json'
    TypeError: cannot concatenate 'str' and 'NoneType' objects
    7 条回复    1970-01-01 08:00:00 +08:00
    Elizax
        1
    Elizax  
       2010-10-11 08:07:28 +08:00
    我的是进入writer/overview/ 提示500 server error
    查看log发现这段
    <type 'exceptions.ImportError'>: No module named auth
    Traceback (most recent call last):
    File "/base/data/home/apps/eagaa/1.345410473466223567/writer.py", line 11, in <module>
    from auth import SECRET
    pepsin
        2
    pepsin  
       2010-11-13 16:54:26 +08:00
    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/yesnote/1.346177338385806040/writer.py", line 211, in get
    if len(mentions_twitter['results']) > 0:
    KeyError: 'results'


    我遇上的是这个,原因不明白
    fsw90628
        3
    fsw90628  
       2010-11-17 16:29:55 +08:00
    @pepsin +1
    bloggerao
        4
    bloggerao  
       2010-11-17 16:33:49 +08:00
    twitter错误的是 要删除几行代码的,
    从201行开始,可以去google搜索一下,V2ex里头有解释,可是不好搜索到,不如用google搜索v2ex 嗯。我就是那么搞定的。
    fsw90628
        5
    fsw90628  
       2010-11-17 16:34:27 +08:00
    如果把
    if len(mentions_twitter['results']) > 0:
    换成
    if len(mentions_twitter['results']) > 0 and 'results' in mentions_twitter:
    可以进writer,但是接下来如果点twitter的链接,会出现楼主的错误
    fsw90628
        6
    fsw90628  
       2010-11-17 17:18:23 +08:00 via Android
    莫非Twitter真的qiang了GAE?
    还是我不幸地超了API的Quota...
    囧 不管怎么说,被拒之门外了 但是我并不想失去这个可爱的功能
    很囧
    Livid
        7
    Livid  
    MOD
       2010-11-17 17:20:06 +08:00
    我考虑上这个 API:

    http://www.backtype.com/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5346 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:54 · PVG 16:54 · LAX 01:54 · JFK 04:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.