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
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