Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook -- run server locally and logout then go to local server again and get KeyError in server log and internal server error #3802

Closed
williamstein opened this issue Aug 10, 2008 · 3 comments

Comments

@williamstein
Copy link
Contributor


2008-08-10 16:25:31-0700 [HTTPChannel,133,127.0.0.1] Exception rendering:
2008-08-10 16:25:31-0700 [HTTPChannel,133,127.0.0.1] Unhandled Error
Traceback (most recent call last):
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/internet/defer.py", line 185, in addCallbacks
    self._runCallbacks()
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/internet/defer.py", line 323, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/internet/defer.py", line 284, in _continue
    self.unpause()
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/internet/defer.py", line 280, in unpause
    self._runCallbacks()
--- <exception caught here> ---
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/internet/defer.py", line 323, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/web2/server.py", line 296, in <lambda>
    d.addCallback(lambda res, req: res.renderHTTP(req), self)
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/web2/resource.py", line 85, in renderHTTP
    return method(request)
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/web2/resource.py", line 202, in http_GET
    return super(Resource, self).http_GET(request)
  File "/Users/was/s/local/lib/python2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.3-i386.egg/twisted/web2/resource.py", line 128, in http_GET
    return self.render(request)
  File "/Users/was/s/local/lib/python2.5/site-packages/sage/server/notebook/twist.py", line 2139, in render
    return http.Response(stream =  login_page_template(notebook.get_accounts(), notebook.default_user()))
  File "/Users/was/s/local/lib/python2.5/site-packages/sage/server/notebook/template.py", line 59, in login_page_template
    return login_template(register = reg, default=default_user, username_error=u_e, password_error=p_e, welcome=welcome)
  File "/Users/was/s/local/lib/python2.5/site-packages/sage/server/notebook/template.py", line 34, in __call__
    return self.__template.substitute(kwds)
  File "/Users/was/s/local/lib/python2.5/string.py", line 170, in substitute
    return self.pattern.sub(convert, self.template)
  File "/Users/was/s/local/lib/python2.5/string.py", line 160, in convert
    val = mapping[named]
exceptions.KeyError: 'forgot_pass'

Component: notebook

Issue created by migration from https://trac.sagemath.org/ticket/3802

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Nov 19, 2009

comment:1

Is this still an issue? I'm guessing you mean logging out of the Mac OSX system?

@williamstein
Copy link
Contributor Author

comment:2

timdumol -- I think this is not an issue. It looks like a bug in the old templating code that you have long since replaced in sagenb. So closed as fixed. (And I can't replicate it.)

@fchapoton

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants