http2 request not working under proxy URGENT #1789
Unanswered
piyush5566
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
We are getting proxy_host and proxy_port as our method parameters, and below is how we are using them to make a POST request:
Traceback (most recent call last):
File "/env/lib64/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/env/lib64/python3.9/site-packages/httpx/_transports/default.py", line 181, in handle_request
status_code, headers, byte_stream, extensions = self._pool.handle_request(
File "/env/lib64/python3.9/site-packages/httpcore/_sync/http_proxy.py", line 115, in handle_request
return self._forward_request(
File "/env/lib64/python3.9/site-packages/httpcore/_sync/http_proxy.py", line 175, in _forward_request
) = connection.handle_request(
File "/env/lib64/python3.9/site-packages/httpcore/_sync/connection.py", line 148, in handle_request
return self.connection.handle_request(
File "/env/lib64/python3.9/site-packages/httpcore/_sync/http11.py", line 128, in handle_request
) = self._receive_response(timeout)
File "/env/lib64/python3.9/site-packages/httpcore/_sync/http11.py", line 189, in _receive_response
event = self._receive_event(timeout)
File "/env/lib64/python3.9/site-packages/httpcore/_sync/http11.py", line 222, in _receive_event
event = self._h11_state.next_event()
File "/usr/lib64/python3.9/contextlib.py", line 135, in exit
self.gen.throw(type, value, traceback)
File "/env/lib64/python3.9/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions
raise to_exc(exc) from None
httpcore.RemoteProtocolError: illegal request line
Note:
Beta Was this translation helpful? Give feedback.
All reactions