You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/opt/python/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 134, in handle
req = next(parser)
^^^^^^^^^^^^
File "/opt/python/lib/python3.11/site-packages/gunicorn/http/parser.py", line 42, in __next__
self.mesg = self.mesg_class(self.cfg, self.unreader, self.source_addr, self.req_count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/python/lib/python3.11/site-packages/gunicorn/http/message.py", line 257, in __init__
super().__init__(cfg, unreader, peer_addr)
File "/opt/python/lib/python3.11/site-packages/gunicorn/http/message.py", line 60, in __init__
unused = self.parse(self.unreader)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/python/lib/python3.11/site-packages/gunicorn/http/message.py", line 281, in parse
self.parse_request_line(line)
File "/opt/python/lib/python3.11/site-packages/gunicorn/http/message.py", line 445, in parse_request_line
raise InvalidHTTPVersion(self.version)
gunicorn.http.errors.InvalidHTTPVersion: <exception str() failed>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/python/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
worker.init_process()
File "/opt/python/lib/python3.11/site-packages/gunicorn/workers/base.py", line 142, in init_process
self.run()
File "/opt/python/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 126, in run
self.run_for_one(timeout)
File "/opt/python/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 70, in run_for_one
self.accept(listener)
File "/opt/python/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 32, in accept
self.handle(listener, client, addr)
File "/opt/python/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 158, in handle
self.handle_error(req, client, addr, e)
File "/opt/python/lib/python3.11/site-packages/gunicorn/workers/base.py", line 225, in handle_error
mesg = "Invalid HTTP Version '%s'" % str(exc)
^^^^^^^^
File "/opt/python/lib/python3.11/site-packages/gunicorn/http/errors.py", line 56, in __str__
return "Invalid HTTP Version: %r" % self.version
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
TypeError: not all arguments converted during string
Is is probably caused by some malicious http request.
Hello,
Our production log contains follwing error:
Is is probably caused by some malicious http request.
There should be probably:
instead of:
in https://github.com/benoitc/gunicorn/blob/master/gunicorn/http/errors.py#L56 (gunicorn.http.errors line 56)
The text was updated successfully, but these errors were encountered: