进入Picky Writer提示错误

2010-11-21 20:23:19 +08:00
 deepice
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/example-picky/1.346371474994347470/writer.py", line 211, in get
if len(mentions_twitter['results']) > 0:
KeyError: 'results'
5427 次点击
所在节点    Project Picky
5 条回复
deepice
2010-11-21 21:03:10 +08:00
有人知道这是什么问题么?
xinzhi
2010-11-21 21:16:55 +08:00
大概是Twitter API的问题,需要修改writer.py文件,已经修改好的问题,你可以直接下载使用:
https://cl.ly/2Qas

请先备份你的writer.py
deepice
2010-11-21 21:56:26 +08:00
@xinzhi 现在Writer可以访问了. 但是Twitter还是提示错误
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/deepice-picky/7.346374760088569714/twitter.py", line 42, in get
lists = api.GetLists()
File "/base/data/home/apps/deepice-picky/7.346374760088569714/v2ex/picky/ext/twitter.py", line 1546, in GetLists
json = self._FetchUrl(url)
File "/base/data/home/apps/deepice-picky/7.346374760088569714/v2ex/picky/ext/twitter.py", line 2180, in _FetchUrl
url_data = opener.open(url, encoded_post_data).read()
File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 425, in error
return self._call_chain(*args)
File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
deepice
2010-11-22 09:39:04 +08:00
继续求助了. 本地模拟也没通过 无法访问Twitter..
Mianco
2010-11-22 10:03:31 +08:00
不要用pick的twitter功能

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

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

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

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

© 2021 V2EX