Skip to content

wsgiref.simple_server not working #49433

Closed

Description

@StephenDay
mannequin
BPO 5183
Superseder
  • bpo-4718: wsgiref package totally broken
  • Files
  • test_server.py: use to reproduce
  • 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 2009-02-08.10:04:00.932>
    created_at = <Date 2009-02-08.05:24:22.191>
    labels = ['library', 'type-crash']
    title = 'wsgiref.simple_server not working'
    updated_at = <Date 2009-02-08.10:04:00.931>
    user = 'https://bugs.python.org/StephenDay'

    bugs.python.org fields:

    activity = <Date 2009-02-08.10:04:00.931>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-02-08.10:04:00.932>
    closer = 'georg.brandl'
    components = ['Library (Lib)']
    creation = <Date 2009-02-08.05:24:22.191>
    creator = 'StephenDay'
    dependencies = []
    files = ['12976']
    hgrepos = []
    issue_num = 5183
    keywords = []
    message_count = 2.0
    messages = ['81366', '81367']
    nosy_count = 1.0
    nosy_names = ['StephenDay']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '4718'
    type = 'crash'
    url = 'https://bugs.python.org/issue5183'
    versions = ['Python 3.0']

    Activity

    1. StephenDay commented on Feb 8, 2009

      StephenDaymannequin
      MannequinAuthor

      The attached application doesn't work. I think the value of self.headers
      (see line 114) has a blank line at the end that it did not in Python 2.5

      Here is the error message that occurs when it gets a request
      (http://127.0.0.1:8080/):

      Exception happened during processing of request from ('127.0.0.1', 
      60549)
      Traceback (most recent call last):
        File "C:\Python30\lib\socketserver.py", line 281, in 
      _handle_request_noblock
          self.process_request(request, client_address)
        File "C:\Python30\lib\socketserver.py", line 307, in process_request
          self.finish_request(request, client_address)
        File "C:\Python30\lib\socketserver.py", line 320, in finish_request
          self.RequestHandlerClass(request, client_address, self)
        File "C:\Python30\lib\socketserver.py", line 614, in __init__
          self.handle()
        File "C:\Python30\lib\wsgiref\simple_server.py", line 136, in handle
          self.rfile, self.wfile, self.get_stderr(), self.get_environ()
        File "C:\Python30\lib\wsgiref\simple_server.py", line 115, in 
      get_environ
          k,v = h.split(':',1)
      ValueError: need more than 1 value to unpack
    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Feb 8, 2009
    3. StephenDay commented on Feb 8, 2009

      StephenDaymannequin
      MannequinAuthor

      This seems to be fixed already (see bpo-4718). Next time I'll search
      more...

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions