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.

Extended Proxy Support

See original GitHub issue

I see #329 added proxy environment support but it is a very simple implementation that only handles https_proxy.

The person that maintains the proxy agent has an expanded version, https://github.com/TooTallNate/node-proxy-agent, which should do a better job of handling https_proxy and also no_proxy which isn’t currently being handled here.

Basic testing seems to show the following works as expected with the core octokit library, adding in proxy depending on both the https_proxy and no_proxy variables.

  const ProxyAgent = require('proxy-agent');

  const octokitProxy = new Octokit({
    request: { agent: new ProxyAgent()}
  })

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
gr2mcommented, Sep 3, 2021

Okay I definitely want us to implement what is documented at https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners, and my understanding is that the current proxy agent we use does not take all 3 env variables into account, but proxy-agent does, so let’s use that 😃 We should also document it in the README and reference GitHub’s official docs.

Can you start a pull request?

0reactions
github-actions[bot]commented, Sep 14, 2021

🎉 This issue has been resolved in version 3.15.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 Configuring Extend Proxies
The extend proxy service ( ProxyService ) is a cluster service that allows extend clients to access a Coherence cluster using TCP/IP. A...
Read more >
Extended Proxy Capabilities - SAP Help Portal
This is an interface pattern, which provides extended control over HTTP connection properties of the Web service client. Factory class name: com.sap.engine.
Read more >
About the Advanced and Extended Proxy Settings
Advanced settings — Include settings for configuring advanced proxy functions and parameters, for example, the maximum number of connections ...
Read more >
Proxy Helper
Set proxy for Google Chrome browser. ... This extension use Chrome native API to set proxy, support socks5, socks4, http, HTTPS protocols ...
Read more >
Extension proxy support #12588 - microsoft/vscode - GitHub
Looking at the Visual Studio Code code base I identified the code that adds support for proxies, but copy&paste it into my extension...
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