I've got a mostly functional REST api built but I'm getting an error
whenever I pass a REST call with a 0 in the parsed section of the URL.
This works:
http://<host:port>/channels/1
These all fail:
http://<host:port>/channels/10
http://<host:port>/channels/01
http://<host:port>/channels/101
My URL definition looks like:
'/channels/?([0-9]*)', 'Channels',
The error in the logs is:
2011-08-11 05:48:33: (mod_fastcgi.c.2701) FastCGI-stderr: Traceback
(most recent call last):
File "/usr/lib/python2.6/site-packages/flup-1.0.3.dev_20110405-
py2.6.egg/flup/server/fcgi_base.py", line 574, in run
protocolStatus, appStatus = self.server.handler(self)
File "/usr/lib/python2.6/site-packages/flup-1.0.3.dev_20110405-
py2.6.egg/flup/server/fcgi_base.py", line 1159, in handler
result = self.application(environ, start_response)
File "/usr/lib/python2.6/site-packages/web/application.py", line
293, in wsgi
start_resp(status, headers)
File "/usr/lib/python2.6/site-packages/flup-1.0.3.dev_20110405-
py2.6.egg/flup/server/fcgi_base.py", line 1143, in start_response
assert len(status) >= 4, 'Status must be at least 4 characters'
AssertionError: Status must be at least 4 characters
[~]$ python --version
Python 2.6.7
[~]$ lighttpd -version
lighttpd/1.4.28 (ssl) - a light and fast webserver
Build-Date: Jan 22 2011 09:18:19
web.py is version 0.34
flup is version 1.0.3.dev-20110405
Does anyone have an idea what might cause this? Thanks much.
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.