Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn download:plugins disregard proxy settings #10267

Closed
Niklas-Dahlquist opened this issue Oct 13, 2021 · 6 comments · Fixed by #11043
Closed

yarn download:plugins disregard proxy settings #10267

Niklas-Dahlquist opened this issue Oct 13, 2021 · 6 comments · Fixed by #11043
Labels
builtins Issues related to VS Code builtin extensions open-vsx issues related to the open-vsx registry

Comments

@Niklas-Dahlquist
Copy link
Contributor

Niklas-Dahlquist commented Oct 13, 2021

Bug Description:

Latest changes to download-plugins.ts doesn't follow proxy settings

Steps to Reproduce:

Do a yarn download:plugins behind a proxy that requires login in Theia Blueprint, is it caused by Blueprint now since a vscode-builtin bundle was introduced, where the resolving kicks-in?

Fails during this step: download-plugins.ts:125 console.warn('--- resolving extension-packs ---');

--- resolving extension-packs ---
Error: connect ETIMEDOUT 198.41.30.195:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
  errno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '198.41.30.195',
  port: 443
}
  • Theia Version: 1.18.0
@vince-fugnitto vince-fugnitto added builtins Issues related to VS Code builtin extensions open-vsx issues related to the open-vsx registry labels Oct 13, 2021
@vince-fugnitto
Copy link
Member

@Niklas-Dahlquist thank you for reporting the issue. Can you confirm if you are able to install extensions at runtime through the extensions-view? The resolvement of extension-packs uses the openvsx-cli to determine the latest compatible extension and is likely the reason it might fail as it might not respect the proxy settings. I suspect that if extensions cannot be installed at runtime through the view then it is an issue with the cli itself that we might need to address support for it.

@Niklas-Dahlquist
Copy link
Contributor Author

Hi Vincent,
I've tried the Blueprint(1.17.2, with proxy settings) and I can confirm that downloading extensions doesn't work. Get timeouts like this:
root ERROR Failed to resolve plugins from 'vscode:extension/bmo-test.bmo-hello-world' Error: connect ETIMEDOUT 198.41.30.195:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1134:16)

@gbodeen
Copy link
Contributor

gbodeen commented Dec 3, 2021

We're now running into almost the same problem in our CI. The trouble appears to start with the bent library used in dev-packages/ovsx-client/src/ovsx-client.ts that isn't configurable to use proxy settings, from where it is used in the getLatestCompatibleExtensionVersion method, which is in turned called from within dev-packages/cli/src/download-plugins.ts when the yarn download:plugins script is run.

@vince-fugnitto
Copy link
Member

@gbodeen that's right, we would need to refactor bent to similarly use what we have in the download:plugins script which supports the proxy settings: #7747.

@ballcoach12
Copy link
Contributor

FWIW, I am seeing the same problem.

@msujew
Copy link
Member

msujew commented May 26, 2022

Just to give some context how this is fixed: The download:plugins command will automatically pick up the http_proxy and https_proxy env variables. Also, you can manually set the --proxy-url <some http address> argument, which will then take precedence over any existing env variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builtins Issues related to VS Code builtin extensions open-vsx issues related to the open-vsx registry
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants