-
Notifications
You must be signed in to change notification settings - Fork 406
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
SFDX plugin not picking up http.proxy from VS code settings #2340
Comments
Any updates on this one? |
This issue has been linked to a new work item: W-7907789 |
Hi @prateekmathur1991 I can confirm this is a limitation in the extensions. I've added it to our list of items to look into and will provide an update on this once we schedule the work to address this. cc @smaddox-sf |
@lcampos Is there any update on this? Any tentative schedule when will this be available? |
Any update on this @lcampos and @smaddox-sf? We would like this capability as well. |
We have this to our backlog and will prioritize it as possible. Currently we don't have any updates on when it will be available. Sorry about that. |
Proxy support seems to be broken due to the transitive dependency on https-proxy-agent through request-light. |
Summary
The project I work on requires HTTP_PROXY environment variable to be set, for sfdx commands to work. I can set that using
export HTTP_PROXY=http://MY_USERNAME:MY_PASSWORD@PROXY_URL:PORT
, and run the sfdx commands (e.g.sfdx force:source:retrieve
, orsfdx force:source:deploy
) manually. But this means that I cannot use the UI shortcuts provided by Salesforce extensions for VS Code, (SFDX: Retrieve this source from org
), because that fails with this error -I tried to resolve this by setting
http.proxy
setting in VS code for my project workspace, but this does not resolve the problem. I also tried experimenting with thehttp.proxyStrictSSL
, andhttp.proxySupport
settings, but that also didn't worked.My guess is that, Salesforce Extensions plugin only pick proxy settings from the
http_proxy
andhttps_proxy
environment variables, but not from the VS code settings.Steps To Reproduce:
Expected result
The
sfdx force:source:retrieve
command that executes as part of step 5 should have completed successfully.Actual result
The command fails with this error -
VS Code Version:
Version: 1.47.0
Commit: d5e9aa0227e057a60c82568bf31c04730dc15dcd
Date: 2020-07-09T08:01:54.115Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0
SFDX CLI Version:
sfdx-cli/7.56.1-2773b53bf5 darwin-x64 node-v10.15.3
OS and version:
macOS Catalina Version 10.15.5
The text was updated successfully, but these errors were encountered: