V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
rse43
V2EX  ›  反馈

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

  •  
  •   rse43 · 2012-05-22 17:48:47 +08:00 · 3833 次点击
    这是一个创建于 4570 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 的初衷吧。
    2 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2012-05-22 17:52:56 +08:00
    是个 bug,现在马上修正。

    多谢反馈。
    Livid
        2
    Livid  
    MOD
       2012-05-22 17:55:01 +08:00
    Fixed.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1035 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:41 · PVG 04:41 · LAX 12:41 · JFK 15:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.