sfdx info:releasenotes:display not working behind a proxy (on WSL)
Summary
When running in my corporate network, I am unable to launch the new info:releasenotes:display command
Steps To Reproduce:
- Connect to a corporate network
- Configure proxy (env variable HTTP_PROXY)
- Run
sfdx info:releasenotes:display
Expected result
Correct result
Actual result
sfdx info:releasenotes:display
ERROR running info:releasenotes:display: connect ECONNREFUSED 185.199.109.133:443
System Information
{
"cliVersion": "sfdx-cli/7.135.0",
"architecture": "wsl-x64",
"nodeVersion": "node-v16.13.0",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.3.1 (core)",
"@oclif/plugin-not-found 1.2.6 (core)",
"@oclif/plugin-plugins 1.10.11 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.3 (core)",
"@oclif/plugin-which 1.0.4 (core)",
"@salesforce/analytics 1.0.1",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"alias 1.2.0 (core)",
"apex 0.7.0 (core)",
"auth 1.8.0 (core)",
"config 1.3.15 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.6.8 (core)",
"generator 1.2.1 (core)",
"info 1.2.0 (core)",
"limits 1.3.0 (core)",
"org 1.11.0 (core)",
"salesforce-alm 53.7.5 (core)",
"schema 1.1.0 (core)",
"sfciutils 1.2.2",
"sfdx-cli 7.135.0 (core)",
"sfdx-codescan-plugin 1.0.7",
"sfpowerkit 3.2.2",
"source 1.5.3 (1.5.3)",
"telemetry 1.4.0 (core)",
"templates 53.1.0 (core)",
"trust 1.1.0 (core)",
"user 1.7.0 (core)"
],
"osVersion": "Linux 5.4.72-microsoft-standard-WSL2"
}
Additional information
Feel free to attach a screenshot.
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
Yep...we'll have to fix that.
Thanks for reporting!
This issue has been linked to a new work item: W-10493241
Hi
After updating to the latest-rc
$ sfdx --version && sfdx info:releasenotes:display
sfdx-cli/7.138.0 wsl-x64 node-v16.13.0
ERROR running info:releasenotes:display: Socket is closed
Hey @mnunezdm, sorry I missed your new comment. Could you confirm you are setting both HTTP_PROXY and HTTPS_PROXY? Also we just released a new RC today, could you try that as well? Thanks
Hello @iowillhoit !!
I have both env variables configured
$ echo $HTTPS_PROXY && echo $HTTP_PROXY && sfdx info:releasenotes:display
http://****
http://****
ERROR running info:releasenotes:display: Socket is closed
Cool, thanks for checking @mnunezdm. Have you had proxy issues with any other commands?
I also wonder if this could have something to do with WSL. Could you try installing sfdx and running the command in CommandPrompt and seeing if you have the same issue?
@iowillhoit
I normally use sfdx + wsl + proxy with no problem, just this command I think.
I will try to check other commands and I reach you back.
Also, I'm installing sfdx in windows.
I have tried with no proxy issues the following commands
sfdx force:source:deploy/retrieve
sfdx force:mdapi:deploy/retrieve
sfdx force:source:deploy:report
sfdx force:user:display
sfdx force:schema:sobject:list
sfdx force:schema:sobject:describe -s WorkOrder
sfdx force:apex:execute -f ./test.apex
sfdx force:limits:api:display
sfdx force:user:display
sfdx force:user:permset:assign
@mnunezdm were you able to try this in CommandPrompt?
Windows
Running in windows without VPN (I assusme this is a problem with the antivirus) (normally disabling ssl verification allows me to fetch this, i assume it is impossible right now to do this in sfdx)
$ sfdx --version ; sfdx info:releasenotes:display
sfdx-cli/7.138.1 win32-x64 node-v16.14.0
ERROR running info:releasenotes:display: unable to get local issuer certificate
Running in Windows with VPN & HTTP_PROXY & HTTPS_PROXY configured
$ sfdx --version ; sfdx info:releasenotes:display
sfdx-cli/7.138.1 win32-x64 node-v16.14.0
ERROR running info:releasenotes:display: Client network socket disconnected before secure TLS connection was established
Running in Windows with VPN & just HTTP_PROXY configured
$ sfdx --version ; sfdx info:releasenotes:display
sfdx-cli/7.138.1 win32-x64 node-v16.14.0
ERROR running info:releasenotes:display: Timeout awaiting 'request' for 3000ms
WSL
Running in WSL without VPN (I assusme this is a problem with the antivirus) (normally disabling ssl verification allows me to fetch this, i assume it is impossible right now to do this in sfdx)
sfdx --version && sfdx info:releasenotes:display
sfdx-cli/7.139.0 wsl-x64 node-v16.13.0
ERROR running info:releasenotes:display: unable to get local issuer certificate
Running in WSL with VPN & HTTP_PROXY & HTTPS_PROXY configured
$ sfdx --version && sfdx info:releasenotes:display
sfdx-cli/7.139.0 wsl-x64 node-v16.13.0
ERROR running info:releasenotes:display: Socket is closed
Running in WSL with VPN & just HTTP_PROXY configured
$ sfdx info:releasenotes:display
ERROR running info:releasenotes:display: Socket is closed
we shipped this Feb 2022 (adding proxy support for these callouts) so it should be working now unless something is weird with WSL (which is technically unsupported).
https://github.com/salesforcecli/plugin-info/pull/75