question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

grpc-js: disable http proxy with client options

See original GitHub issue

Is your feature request related to a problem? Please describe.

When a system level http proxy is set (eg with http_proxy), and i attempt to connect to a grpc server running on localhost, the client never connects. I don’t think it makes sense for requests to localhost to go through the http proxy.

Describe the solution you’d like

I would like to disable http proxying in the client with a client option, eg { 'grpc.enable_http_proxy': 0 }

Describe alternatives you’ve considered

Using env vars work, eg: no_grpc_proxy=localhost,127.0.0.0/8, but i don’t want to set global vars. I have built an application that attempts to connect to a localhost grpc server and I don’t want to set global vars that might have side effects with other applications that use grpc.

I am more than happy to send a PR myself, but i’d like to get some feedback first. Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
murgatroid99commented, Jun 3, 2020

I have published 1.0.5 with your change.

0reactions
badsyntaxcommented, Jun 4, 2020

Thanks, have tested this change in my app it’s working as expected 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 5 @grpc/grpc-js Code Examples - Snyk
Learn more about how to use @grpc/grpc-js, based on @grpc/grpc-js code examples created from the most popular ways it is used in public...
Read more >
How to disable HTTP proxy features - Windows Server
Describes how to disable specific features of Windows HTTP proxies. ... Settings\DisableProxyAuthenticationSchemes.
Read more >
@grpc/grpc-js - npm
Start using @grpc/grpc-js in your project by running `npm i ... Client Interceptors; Connection Keepalives; HTTP Connect support (proxies).
Read more >
Basics tutorial | Web - gRPC
Use the gRPC-Web API to write a simple client for your service. ... In this example, we will use the Envoy proxy to...
Read more >
Disable the HTTP Proxy in the Browser
Open Internet Explorer. · Select Tools > Internet Options. · Select the Connections tab. · Click LAN Settings. · Clear the Use a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found