This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Walling
Recipients Walling
Date 2008-09-06.19:38:13
SpamBayes Score 3.260698e-05
Marked as misclassified No
Message-id <1220729895.68.0.892573521462.issue3795@psf.upfronthosting.co.za>
In-reply-to
Content
To reproduce the error start Python 3.0 and enter the usual WSGI "hello
world" application:

>>> from wsgiref.simple_server import make_server, demo_app
>>> httpd = make_server('', 8000, demo_app)
>>> httpd.serve_forever()

Open a browser and point it at http://location:8000/. On each HTTP
request an exception will be thrown:

----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 55779)
Traceback (most recent call last):
  File "/usr/local/lib/python3.0/socketserver.py", line 281, in
_handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/local/lib/python3.0/socketserver.py", line 307, in
process_request
    self.finish_request(request, client_address)
  File "/usr/local/lib/python3.0/socketserver.py", line 320, in
finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python3.0/socketserver.py", line 614, in __init__
    self.handle()
  File "/usr/local/lib/python3.0/wsgiref/simple_server.py", line 136, in
handle
    self.rfile, self.wfile, self.get_stderr(), self.get_environ()
  File "/usr/local/lib/python3.0/wsgiref/simple_server.py", line 115, in
get_environ
    k,v = h.split(':',1)
ValueError: need more than 1 value to unpack
----------------------------------------

Expected result: The nice demo page containing WSGI environment
variables is displayed in the browser.
History
Date User Action Args
2008-09-06 19:38:15Wallingsetrecipients: + Walling
2008-09-06 19:38:15Wallingsetmessageid: <1220729895.68.0.892573521462.issue3795@psf.upfronthosting.co.za>
2008-09-06 19:38:14Wallinglinkissue3795 messages
2008-09-06 19:38:14Wallingcreate