进入后台出现如下的错误

2010-10-07 15:53:18 +08:00
 seanwang
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
9068 次点击
所在节点    Project Picky
7 条回复
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
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
2010-11-17 16:29:55 +08:00
@pepsin +1
bloggerao
2010-11-17 16:33:49 +08:00
twitter错误的是 要删除几行代码的,
从201行开始,可以去google搜索一下,V2ex里头有解释,可是不好搜索到,不如用google搜索v2ex 嗯。我就是那么搞定的。
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
2010-11-17 17:18:23 +08:00
莫非Twitter真的qiang了GAE?
还是我不幸地超了API的Quota...
囧 不管怎么说,被拒之门外了 但是我并不想失去这个可爱的功能
很囧
Livid
2010-11-17 17:20:06 +08:00
我考虑上这个 API:

http://www.backtype.com/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/3159

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX