Skip to content

client side proxy when using ManagedChannelBuilder.forTarget() #5600

@anusha-hv

Description

@anusha-hv

Please answer these questions before submitting your issue.

What version of gRPC are you using?

I have been using 1.16.1 version. Now upgraded to 1.20.0 version.
The machine where am running the client side ie, ManagedChannelBuilder.forTarget(serveraddress) call is used is proxy enabled.
I get an error saying "Channel closed while trying to CONNECT through proxy"

I can read the proxy address from environment variable http_proxy.
For example : http_proxy="10.9.3.2.9090" and my target Address = "10.45.6.1:7070" (ie grpc server is running on another machine)
How do i make the grpc allow this proxy and send request to the target Address.

What did you expect to see?

I need a sample example. I see a proxydetector that is available but not sure about the usage of it since the method takes a single address.

I am new to grpc. Need help.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions