cherrypy tracing back all the time
Hari Sekhon
sekhon.hari at googlemail.com
Sun Jul 23 12:59:54 EDT 2006
I've got a very simple script with cherrypy but for some reason the cherrypy
server is constantly tracing back but it stays up, kind of, the performance
etc though shows that something is wrong.
import cherrypy
import threading
def someFunc():
while 1:
print "working"
threading._start_new_thread( someFunc , () )
class someClass():
def index(self):
test="this is a test"
return test
index.exposed=True
cherrypy.root=someClass()
cherrypy.config.update( file="cherrypyconfig.txt" )
cherrypy.server.start()
The tracebacks I get are:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
242, in run
request.parse_request()
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
134, in parse_request
method,path,version = request_line.strip().split(" ", 2)
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
242, in run
request.parse_request()
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
134, in parse_request
method,path,version = request_line.strip().split(" ", 2)
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
242, in run
request.parse_request()
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
134, in parse_request
method,path,version = request_line.strip().split(" ", 2)
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
242, in run
request.parse_request()
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
134, in parse_request
method,path,version = request_line.strip().split(" ", 2)
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
242, in run
request.parse_request()
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
134, in parse_request
method,path,version = request_line.strip().split(" ", 2)
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
242, in run
request.parse_request()
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgiserver.py", line
134, in parse_request
method,path,version = request_line.strip().split(" ", 2)
ValueError: need more than 1 value to unpack
2006/07/23 17:58:46 INFO Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cpwsgi.py", line 110, in
wsgiApp
environ['wsgi.url_scheme'],
File "/usr/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 227,
in request
requestLine, headers, rfile, scheme)
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line
181, in __init__
self.parseFirstLine()
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line
223, in parseFirstLine
request.method, path, request.protocol = request.requestLine.split()
ValueError: too many values to unpack
I don't understand, all I've asked the stupid cherrypy thing to do is to
print one line...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060723/68090110/attachment.html>
More information about the Python-list
mailing list