Hi,
I have been using Authkit along with Pylons successfully for some time. The
application is used in rural Karnataka for insurance payments.
Of late I am getting an exceptions from Authkit. For some reason the error
is intermittent. The traceback is pasted below. Could you please help me
understand how I might resolve this issue or why this exception is being
thrown?
Exception happened during processing of request from ('127.0.0.1', 59607)
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/httpserver.py",
line 1046, in process_request_in_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.5/SocketServer.py", line 522, in __init__
self.handle()
File
"/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/httpserver.py",
line 425, in handle
BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File
"/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/httpserver.py",
line 420, in handle_one_request
self.wsgi_execute()
File
"/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/httpserver.py",
line 287, in wsgi_execute
self.wsgi_start_response)
File
"/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py",
line 92, in __call__
return self.apps[-1](environ, start_response)
File
"/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py",
line 340, in __call__
app_iter = self.application(environ, start_response)
File
"/usr/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/authkit/authenticate/__init__.py",
line 290, in __call__
return self.app(environ, start_response)
File
"/usr/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/authkit/authenticate/cookie.py",
line 354, in __call__
return self.app(environ, cookie_setting_start_response)
File
"/usr/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/authkit/authenticate/multi.py",
line 64, in __call__
raise Exception('WSGI start_response was not called before a result'
Exception: WSGI start_response was not called before a result was returned
pylons .ini file has the following authkit configuration under section
[app.main]
[app.main]
authkit.setup.method = form, cookie
authkit.form.authenticate.user.type = troika.lib.auth:AuthHandler
authkit.form.authenticate.user.data = troika.model
authkit.cookie.secret = secret string
authkit.cookie.signoutpath = /auth/signout
authkit.setup.intercept = 401, 403
authkit.form.template.obj = troika.lib.auth:signin_template
My middleware has the following section within the makeapp function.
app = PylonsApp()
app = authkit.authenticate.middleware(app, app_conf)
if asbool(full_stack):
app = ErrorHandler(app, global_conf, error_template=error_template,
**config['pylons.errorware'])
app = ErrorDocuments(app, global_conf, mapper=error_mapper,
**app_conf)
app = RegistryManager(app)
regards,
Jacob Abraham
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.