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

sfdx info:releasenotes:display not working behind a proxy (on WSL) #1378

Closed
mnunezdm opened this issue Jan 25, 2022 · 13 comments
Closed

sfdx info:releasenotes:display not working behind a proxy (on WSL) #1378

mnunezdm opened this issue Jan 25, 2022 · 13 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue

Comments

@mnunezdm
Copy link

mnunezdm commented Jan 25, 2022

Summary

When running in my corporate network, I am unable to launch the new info:releasenotes:display command

Steps To Reproduce:

  1. Connect to a corporate network
  2. Configure proxy (env variable HTTP_PROXY)
  3. 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.

@mnunezdm mnunezdm added the investigating We're actively investigating this issue label Jan 25, 2022
@github-actions
Copy link

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.

@mshanemc
Copy link
Contributor

Yep...we'll have to fix that.

Thanks for reporting!

@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Jan 27, 2022
@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-10493241

@mnunezdm
Copy link
Author

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

@iowillhoit
Copy link
Contributor

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

@mnunezdm
Copy link
Author

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

@iowillhoit
Copy link
Contributor

Cool, thanks for checking @mnunezdm. Have you had proxy issues with any other commands?

@iowillhoit
Copy link
Contributor

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?

@mnunezdm
Copy link
Author

@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.

@mnunezdm
Copy link
Author

mnunezdm commented Feb 22, 2022

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

@iowillhoit
Copy link
Contributor

@mnunezdm were you able to try this in CommandPrompt?

@iowillhoit iowillhoit added the more information required Issue requires more information or a response from the customer label Feb 24, 2022
@mnunezdm
Copy link
Author

mnunezdm commented Feb 28, 2022

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

@no-response no-response bot removed the more information required Issue requires more information or a response from the customer label Feb 28, 2022
@mshanemc mshanemc changed the title sfdx info:releasenotes:display not working behind a proxy sfdx info:releasenotes:display not working behind a proxy (on WSL) Jun 2, 2022
@mshanemc
Copy link
Contributor

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).

salesforcecli/plugin-info#75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

4 participants