进入后台出现如下的错误 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
seanwang
V2EX    Project Picky

进入后台出现如下的错误

  •  
  •   seanwang 2010-10-07 15:53:18 +08:00 10245 次点击
    这是一个创建于 5552 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    liss = 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
    PRO
       2010-11-17 17:20:06 +08:00
    我考虑上这个 API:

    http://www.backtype.com/
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2592 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 25ms UTC 13:03 PVG 21:03 LAX 05:03 JFK 08:03
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86