From e34732e36b032b99474ae1b903eeacf73423614b Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Mon, 4 Apr 2022 13:19:10 +0100 Subject: [PATCH] Update uvicorn from broken 0.17.1 Fix issue found when testing planemo in https://github.com/galaxyproject/planemo/pull/1224#issuecomment-1086201126 : ``` 2022-04-01T14:44:05.3964452Z [2022-04-01 14:41:23 +0000] [6904] [WARNING] Invalid HTTP request received. 2022-04-01T14:44:05.3964583Z Traceback (most recent call last): 2022-04-01T14:44:05.3965087Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 136, in handle_events 2022-04-01T14:44:05.3965218Z event = self.conn.next_event() 2022-04-01T14:44:05.3965652Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 443, in next_event 2022-04-01T14:44:05.3965801Z exc._reraise_as_remote_protocol_error() 2022-04-01T14:44:05.3966277Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_util.py", line 76, in _reraise_as_remote_protocol_error 2022-04-01T14:44:05.3966383Z raise self 2022-04-01T14:44:05.3966831Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 425, in next_event 2022-04-01T14:44:05.3966977Z event = self._extract_next_receive_event() 2022-04-01T14:44:05.3967445Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 367, in _extract_next_receive_event 2022-04-01T14:44:05.3967588Z event = self._reader(self._receive_buffer) 2022-04-01T14:44:05.3968049Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_readers.py", line 73, in maybe_read_from_IDLE_client 2022-04-01T14:44:05.3968225Z request_line_re, lines[0], "illegal request line: {!r}", lines[0] 2022-04-01T14:44:05.3968629Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_util.py", line 88, in validate 2022-04-01T14:44:05.3968781Z raise LocalProtocolError(msg) 2022-04-01T14:44:05.3969215Z h11._util.RemoteProtocolError: illegal request line: bytearray(b'--a250a2c0546542508998e4e0ac8f1001') 2022-04-01T14:44:05.3969497Z [2022-04-01 14:41:23 +0000] [6904] [WARNING] Invalid HTTP request received. 2022-04-01T14:44:05.3969623Z Traceback (most recent call last): 2022-04-01T14:44:05.3970105Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 136, in handle_events 2022-04-01T14:44:05.3970231Z event = self.conn.next_event() 2022-04-01T14:44:05.3970655Z File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 423, in next_event 2022-04-01T14:44:05.3971003Z raise RemoteProtocolError("Can't receive data when peer state is ERROR") 2022-04-01T14:44:05.3971287Z h11._util.RemoteProtocolError: Can't receive data when peer state is ERROR ``` --- lib/galaxy/dependencies/dev-requirements.txt | 2 +- lib/galaxy/dependencies/pinned-requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/dependencies/dev-requirements.txt b/lib/galaxy/dependencies/dev-requirements.txt index d269a4704b3b..ae8d4553c24a 100644 --- a/lib/galaxy/dependencies/dev-requirements.txt +++ b/lib/galaxy/dependencies/dev-requirements.txt @@ -220,7 +220,7 @@ typing-extensions==4.0.1; python_version >= "3.6" tzlocal==2.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version < "4" ubiquerg==0.6.2 urllib3==1.26.8; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.7" -uvicorn==0.17.1; python_version >= "3.7" +uvicorn==0.17.6; python_version >= "3.7" uvloop==0.16.0; python_version >= "3.7" vine==5.0.0; python_version >= "3.7" watchdog==2.1.6; python_version >= "3.6" diff --git a/lib/galaxy/dependencies/pinned-requirements.txt b/lib/galaxy/dependencies/pinned-requirements.txt index bae02105d301..04817885bd19 100644 --- a/lib/galaxy/dependencies/pinned-requirements.txt +++ b/lib/galaxy/dependencies/pinned-requirements.txt @@ -158,7 +158,7 @@ typing-extensions==4.0.1; python_version >= "3.6" tzlocal==2.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version < "4" ubiquerg==0.6.2 urllib3==1.26.8; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4" or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.6" -uvicorn==0.17.1; python_version >= "3.7" +uvicorn==0.17.6; python_version >= "3.7" uvloop==0.16.0; python_version >= "3.7" vine==5.0.0; python_version >= "3.7" wcwidth==0.2.5; python_full_version >= "3.6.2" and python_version >= "3.7"