seanwang

进入后台出现如下的错误

  •  
  •   seanwang · Oct 7, 2010 · 10688 views
    This topic created in 5722 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/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 replies    1970-01-01 08:00:00 +08:00
    Elizax
        1
    Elizax  
       Oct 11, 2010
    我的是进入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  
       Nov 13, 2010
    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  
       Nov 17, 2010
    @pepsin +1
    bloggerao
        4
    bloggerao  
       Nov 17, 2010
    twitter错误的是 要删除几行代码的,
    从201行开始,可以去google搜索一下,V2ex里头有解释,可是不好搜索到,不如用google搜索v2ex 嗯。我就是那么搞定的。
    fsw90628
        5
    fsw90628  
       Nov 17, 2010
    如果把
    if len(mentions_twitter['results']) > 0:
    换成
    if len(mentions_twitter['results']) > 0 and 'results' in mentions_twitter:
    可以进writer,但是接下来如果点twitter的链接,会出现楼主的错误
    fsw90628
        6
    fsw90628  
       Nov 17, 2010 via Android
    莫非Twitter真的qiang了GAE?
    还是我不幸地超了API的Quota...
    囧 不管怎么说,被拒之门外了 但是我并不想失去这个可爱的功能
    很囧
    Livid
        7
    Livid  
    MOD
    PRO
       Nov 17, 2010
    我考虑上这个 API:

    http://www.backtype.com/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6186 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 02:12 · PVG 10:12 · LAX 19:12 · JFK 22:12
    ♥ Do have faith in what you're doing.