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

wsgiref.simple_server fails to run demo_app #48045

Closed
Walling mannequin opened this issue Sep 6, 2008 · 2 comments
Closed

wsgiref.simple_server fails to run demo_app #48045

Walling mannequin opened this issue Sep 6, 2008 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@Walling
Copy link
Mannequin

Walling mannequin commented Sep 6, 2008

BPO 3795
Nosy @pitrou
Superseder
  • bpo-4718: wsgiref package totally broken
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-09-06.21:33:42.671>
    created_at = <Date 2008-09-06.19:38:14.948>
    labels = ['library']
    title = 'wsgiref.simple_server fails to run demo_app'
    updated_at = <Date 2008-12-22.16:27:43.269>
    user = 'https://bugs.python.org/Walling'

    bugs.python.org fields:

    activity = <Date 2008-12-22.16:27:43.269>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-09-06.21:33:42.671>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2008-09-06.19:38:14.948>
    creator = 'Walling'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 3795
    keywords = []
    message_count = 2.0
    messages = ['72684', '72704']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'Walling']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '4718'
    type = None
    url = 'https://bugs.python.org/issue3795'
    versions = ['Python 3.0']

    @Walling
    Copy link
    Mannequin Author

    Walling mannequin commented Sep 6, 2008

    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.

    @Walling Walling mannequin added the stdlib Python modules in the Lib dir label Sep 6, 2008
    @pitrou
    Copy link
    Member

    pitrou commented Sep 6, 2008

    This seems to be a duplicate of bpo-3348.

    @pitrou pitrou closed this as completed Sep 6, 2008
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant