cli icon indicating copy to clipboard operation
cli copied to clipboard

`auth:web:login --browser <name>` hangs when the browser you try to use isn't installed

Open RodEsp opened this issue 3 years ago • 2 comments

Summary

To resolve https://github.com/forcedotcom/cli/issues/1465, the --browser flag was added to the auth:web:login command but with it a bug was introduced that causes the command to hang when you try to use a browser that isn't installed.

Steps To Reproduce:

  1. Make sure you don't have either edge, chrome, or firefox installed.
  2. Run sfdx auth:web:login --browser <nameOfBrowserThatIsNotInstalled>

Expected result

The command should exit with an error saying the browser is not available or installed or something like that.

Actual result

The command just hangs indefinitely until the process is manually killed by the user.

System Information

  • Which shell/terminal are you using? Powershell 7, although I've seen this on bash too
  • Which version of the CLI are you using? This is happening with version 2.3.0 of plugin-auth

RodEsp avatar Nov 30 '22 22:11 RodEsp

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.

github-actions[bot] avatar Nov 30 '22 22:11 github-actions[bot]