Grpc: How to work with proxy.

Created on 6 Jul 2018  路  3Comments  路  Source: grpc/grpc

I need to get grpc to run on a company machine with a proxy, and basically any network communication will go through the proxy for screening. Both grpc server and client run on the same machine.

In this case the grpc does not work on my machine. The sever can start to listen, but the client cannot find the server and returns "unavailable" error.

How do I get grpc client to find the server in this case? I am using python 3.6 and the latest version of grpc from "pip install".

kinquestion lanPython prioritP3

Most helpful comment

We finally get it to work. Have to use "http_proxy= " before the line that execute the server or client. no_proxy does not work, we don't know why.

All 3 comments

Can you disable proxy for localhost via no_proxy=localhost environment variable?

I'm going to close this issue since we haven't heard back. Please ping if the issue remains unresolved, although Stack Overflow remains the preferred venue over GitHub for questions as opposed to issues regarding gRPC.

We finally get it to work. Have to use "http_proxy= " before the line that execute the server or client. no_proxy does not work, we don't know why.

Was this page helpful?
0 / 5 - 0 ratings