rspivak / lsbaws

Let's Build A Web Server
MIT License
657 stars 304 forks source link

list index out of range #4

Open lynecro opened 8 years ago

lynecro commented 8 years ago

After running the pyramid server, I can get the response shown in the browser, but after a few seconds, below error was showing on the console and the server was down: Traceback (most recent call last): File "webserver2.py", line 142, in httpd.serve_forever() File "webserver2.py", line 41, in serve_forever self.handle_one_request() File "webserver2.py", line 51, in handle_one_request self.parse_request(request_data) File "webserver2.py", line 64, in parse_request request_line = text.splitlines()[0] IndexError: list index out of range

maxerogers commented 8 years ago

Can confirm I had the same issue.

screen shot 2015-12-22 at 3 46 56 pm
zhwindy commented 5 years ago

this error because your request text is None