question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sfdx force:* hangs when there's an error (no exit code returned)

See original GitHub issue

Summary

When there’s an error in any of the force:* commands, process hangs forever without returning an exit code.

Steps To Reproduce:

  1. Run any force:* command forcing an error (E.g. sfdx force:org:list wrongparam or sfdx 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_error_1

sfdx force:org:list --json wrongparam sfdx_error_2

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:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
BobSeucommented, Oct 3, 2019

Thanks for the temporary solution! I was running into this and it was getting pretty frustrating!

0reactions
bcattaneocommented, Dec 5, 2019

Hello. It did for me as well, thank you. I’m closing this issue now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found