500 Internal Server Error while requesting notification rss feed w/o cookie

2012-05-22 17:48:47 +08:00
 rse43
curl -v http://www.v2ex.com/n/[private_token].xml
* About to connect() to www.v2ex.com port 80 (#0)
* Trying 106.187.41.232... connected
* Connected to www.v2ex.com (106.187.41.232) port 80 (#0)
> GET /n/[private_token].xml HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: www.v2ex.com
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Date: Tue, 22 May 2012 09:42:33 GMT
< Content-Type: text/plain
< Content-Length: 890
< Connection: keep-alive
< Server: TornadoServer/2.2
< Set-Cookie: V2EX_LANG=en; Path=/
<
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/tornado/web.py", line 988, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/v2ex/galaxy/handlers/web/notifications.py", line 53, in get
self.finalize('n.xml')
File "/www/v2ex/galaxy/handlers/feed/__init__.py", line 45, in finalize
self.write(template.render(self.values))
File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/www/v2ex/galaxy/templates/feed/n.xml", line 3, in top-level template code
<title>{{ site.title }} › {{ member.username }}</title>
File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 372, in getattr
return getattr(obj, attribute)
UndefinedError: 'member' is undefined
* Connection #0 to host www.v2ex.com left intact
* Closing connection #0

只有登陆后才能访问的RSS feed应该不是 @livid 的初衷吧。
3694 次点击
所在节点    反馈
2 条回复
Livid
2012-05-22 17:52:56 +08:00
是个 bug,现在马上修正。

多谢反馈。
Livid
2012-05-22 17:55:01 +08:00
Fixed.

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

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

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

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

© 2021 V2EX