gRPC support #1507
Unanswered
Private-SO
asked this question in
General
gRPC support
#1507
Replies: 2 comments 4 replies
-
|
@Private-SO Hey, If you'd like folks to give a helping hand, could you please follow and fill in the issue template? There's important information there that needs communicating anyway to troubleshoot situations like these. Thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hrm... it's a bit tricky to replicate this as: >>> response = r.post('https://aws-xxx.us-east-1.elb.amazonaws.com/version')
...
httpx.ConnectError: [Errno 8] nodename nor servname provided, or not known |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I have a aws alb load balancer that runs on port 443 with a self signed certificate on it. Behind alb there is a target group(ec2) that runs on
GRPCprotocol version. The target group(EC2 instance) has nginx listening on port 50052. When i trigger a HTTP2 POST request to my alb withverify=Falseflag I am getting a random error. Sometimes I get the correct response which is a string and some times I get a error.To reproduce
My nginx configuration
Expected behavior
{"field":"value"}
Debugging material
Traceback (most recent call last):
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_exceptions.py", line 326, in map_exceptions
yield
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_client.py", line 856, in _send_single_request
(status_code, headers, stream, ext) = transport.request(
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_transports\default.py", line 102, in request
return self._pool.request(method, url, headers=headers, stream=stream, ext=ext)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpcore_sync\connection_pool.py", line 218, in request
response = connection.request(
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpcore_sync\connection.py", line 106, in request
return self.connection.request(method, url, headers, stream, ext)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpcore_sync\http2.py", line 119, in request
return h2_stream.request(method, url, headers, stream, ext)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpcore_sync\http2.py", line 297, in request
status_code, headers = self.receive_response(timeout)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpcore_sync\http2.py", line 371, in receive_response
event = self.connection.wait_for_event(self.stream_id, timeout)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpcore_sync\http2.py", line 198, in wait_for_event
self.receive_events(timeout)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpcore_sync\http2.py", line 215, in receive_events
raise RemoteProtocolError(event)
httpcore.RemoteProtocolError: <StreamReset stream_id:1, error_code:ErrorCodes.INTERNAL_ERROR, remote_reset:True>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\pipenv\http2request.py", line 29, in
response = r.post('https://alb-913799985.us-east-1.elb.amazonaws.com/version')
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_client.py", line 987, in post
return self.request(
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_client.py", line 728, in request
return self.send(
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_client.py", line 762, in send
response = self._send_handling_auth(
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_client.py", line 800, in _send_handling_auth
response = self._send_handling_redirects(
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_client.py", line 832, in _send_handling_redirects
response = self._send_single_request(request, timeout)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_client.py", line 856, in _send_single_request
(status_code, headers, stream, ext) = transport.request(
File "D:\python3.9\lib\contextlib.py", line 135, in exit
self.gen.throw(type, value, traceback)
File "C:\Users\rocki.virtualenvs\pipenv-LAdtM08T\lib\site-packages\httpx_exceptions.py", line 343, in map_exceptions
raise mapped_exc(message, **kwargs) from exc # type: ignore
httpx.RemoteProtocolError: <StreamReset stream_id:1, error_code:ErrorCodes.INTERNAL_ERROR, remote_reset:True>
Environment
Beta Was this translation helpful? Give feedback.
All reactions