sfdx force:* hangs when there's an error (no exit code returned)
See original GitHub issueSummary
When there’s an error in any of the force:* commands, process hangs forever without returning an exit code.
Steps To Reproduce:
- Run any force:* command forcing an error (E.g.
sfdx force:org:list wrongparam
orsfdx force:org:list --json wrongparam
).
Expected result
Process exits returning a (negative) exit code.
Actual result
Process hangs forever, doesn’t return an exit code.
Additional information
sfdx force:org:list wrongparam
sfdx force:org:list --json wrongparam
SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.18.0-ee5dc8194c win32-x64 node-v10.15.3
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core):
@oclif/plugin-commands 1.2.2 (core)
@oclif/plugin-help 2.2.0 (core)
@oclif/plugin-not-found 1.2.2 (core)
@oclif/plugin-plugins 1.7.8 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.5 (core)
analytics 1.2.0 (core)
generator 1.1.0 (core)
salesforcedx 46.8.0 (core)
├─ force-language-services 46.12.0 (core)
└─ salesforce-alm 46.11.0 (core)
sfdx-cli 7.18.0 (core)
OS and version: Windows 10
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
ERROR running force:source:deploy: InvalidPackageDirectory
There is an unwanted path "deploy-sf" in sfdx-project. json file, I removed that path and tried deployment, it worked :)
Read more >SFDX: Authorize an Org failed to run - Salesforce Developers
Hi guys, 1.Press Ctrl+Alt+Delete, then click Task Manager. 2.Select the Process tab. 3.Find the process named Node. 4.Select the process that ...
Read more >Troubleshooting Windows Devices: Workspace ONE ...
Fiddler can help to determine if the device can communicate with Workspace ONE UEM, check the contents of profiles being pushed, and return...
Read more >SFDX Authorize an Org failed to run - Stack Overflow
After re-installing Salesforce CLI and running the command sfdx from the Terminal window, I am still getting this error: "/Users/eduardo/.local/ ...
Read more >sfdx-hardis - npm
There are no other projects in the npm registry using sfdx-hardis. ... sfdx-hardis wrapper for sfdx force:mdapi:deploy that displays tips to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the temporary solution! I was running into this and it was getting pretty frustrating!
Hello. It did for me as well, thank you. I’m closing this issue now.