function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Iulian Vizireanu 2Iulian Vizireanu 2 

SFDX Authorise an Org failed.

Hi, 

Please can someone can help me with this, look that is successful, but then I got an error and don`t know why. 

Starting SFDX: Set a Default Org
sfdx force:config:set defaultusername=https://um5.lightning.force.com/lightning/setup/SetupOneHome/home,Dev,DevHub,https://um5.lightning.force.com/lightning/page/home
=== Set Config
Name             Value                                                                                                                             Success
───────────────  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────  ───────
defaultusername  https://um5.lightning.force.com/lightning/setup/SetupOneHome/home,Dev,DevHub,https://um5.lightning.force.com/lightning/page/home  false

ERROR running config:set:  No AuthInfo found for name https://um5.lightning.force.com/lightning/setup/SetupOneHome/home,Dev,DevHub,https://um5.lightning.force.com/lightning/page/home

sfdx force:config:set defaultusername=https://um5.lightning.force.com/lightning/setup/SetupOneHome/home,Dev,DevHub,https://um5.lightning.force.com/lightning/page/home
 ended with exit code 1


Many thanks, 
Iulian 
SwethaSwetha (Salesforce Developers) 
HI Iulian,
Looks like this is an issue related to the regression bug in the Salesforce CLI latest version.
See https://github.com/forcedotcom/cli/issues/811 for more details
https://salesforce.stackexchange.com/questions/331530/vscode-unable-to-authorize-to-an-org
https://github.com/forcedotcom/cli/issues/802

If this information helps, please mark the answer as best.Thank you
Lukesh KarmoreLukesh Karmore
Hi Iulian,
first update CLI , 

Do you have any proxy or firewall setup, if so you would need to configure it.
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm

References for similar issue
https://developer.salesforce.com/forums/?id=9062I000000IKsCQAW
https://developer.salesforce.com/forums/?id=9062I000000XqRXQA0
https://salesforce.stackexchange.com/questions/256860/authorize-org-failed-in-vs-code

Thanks,