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.

Extension is not working behind a proxy

See original GitHub issue

Visual Studio Code Version : [ 1.4 ] Code Sync Settings Version : [ last on 2016-08-08 ] Operating System : [ Windows 7 ]

Error: getaddrinfo ENOTFOUND api.github.com api.github.com:443
    at global.sendError (C:\Users\peninni2\.vscode\extensions\Shan.code-settings-sync-1.6.3\node_modules\github4\lib\index.js:753:19)
    at C:\Users\peninni2\.vscode\extensions\Shan.code-settings-sync-1.6.3\node_modules\github4\lib\index.js:762:29
    at callCallback (C:\Users\peninni2\.vscode\extensions\Shan.code-settings-sync-1.6.3\node_modules\github4\lib\index.js:639:17)
    at ClientRequest.<anonymous> (C:\Users\peninni2\.vscode\extensions\Shan.code-settings-sync-1.6.3\node_modules\github4\lib\index.js:710:17)
    at emitOne (events.js:90:13)
    at ClientRequest.emit (events.js:182:7)
    at TLSSocket.socketErrorListener (_http_client.js:295:9)
    at emitOne (events.js:90:13)
    at TLSSocket.emit (events.js:182:7)
    at connectErrorNT (net.js:996:8)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
shanalikhancommented, Oct 31, 2016

I have published the 2.3.4 version with proxy support.

2reactions
nonoroazorocommented, Oct 20, 2016

Hi @shanalikhan, to solve this problem, just add proxy into options when you create node-github instance, like:

new GitHubApi({ proxy: "http://127.0.0.1:1080" // ss proxy for example. })

as the node-github is using https-proxy-agent to handle proxy in its httpSend function which is used to handle Gist/GitHub api.

So, you can just save proxy settings into syncSettings.json file, and read it when your ext is activated.

I’ve tested in my syncing ext and it worked well. Hope this would help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extensions Not Working Behind Corporate Proxy · Issue #15101
Steps to Reproduce: Open VSCode; Click on the extensions button on the left hand pane. I receive the below error in the developer...
Read more >
Proxy setting using chrome extension not working with ...
I am using chrome extension for switching the chrome proxy setting at runtime. I have tested my code on chrome 59 and chrome...
Read more >
Does not work behind corporate proxy (#10) · Issues - GitLab
I'm behind an authenticated corporate proxy and the extension seems to hang at Fetching pipeline... and Finding MR.... I have properly setup ...
Read more >
proxy settings not working within the custom extension
Hello Everyone, We are currently trying to implement a custom extension on DT managed env. that should get, set, put and push and...
Read more >
chrome.proxy - Chrome Developers
You must declare the "proxy" permission in the extension manifest to use the proxy ... If no scheme is specified, the proxy connection...
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