rse43
V2EX  ›  反馈

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

  •  
  •   rse43 · May 22, 2012 · 4555 views
    This topic created in 5129 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       May 22, 2012
    是个 bug,现在马上修正。

    多谢反馈。
    Livid
        2
    Livid  
    MOD
    PRO
       May 22, 2012
    Fixed.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1035 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:11 · PVG 02:11 · LAX 11:11 · JFK 14:11
    ♥ Do have faith in what you're doing.