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
Kashyap JoshiKashyap Joshi 

SFDX: Authorize an Org failed

Hi All,

I am trying to authorize an org on visual code but   I am getting the below error.

SFDX: Authorize an Org failed to run

 sfdx force:auth:web:login --setalias JFFDdev --instanceurl https://test.salesforce.com --setdefaultusername
ERROR running auth:web:login:  spawn UNKNOWN


sfdx force:auth:web:login --setalias JFFDdev --instanceurl https://test.salesforce.com --setdefaultusername
 ended with exit code 1

PriyaPriya (Salesforce Developers) 
Hi Kashyap,


Greetings to you!

Please refer to the below links which might help you further with the above issue.

https://salesforce.stackexchange.com/questions/208158/authorizing-dev-hub-from-force-com-ide2-redirects-to-localhost-after-authorizing

https://salesforce.stackexchange.com/questions/249857/cannot-connect-a-salesforce-org-using-authorize-an-org-in-vs-code

https://salesforce.stackexchange.com/questions/251589/unable-to-authorize-salesforce-org-using-sfdx-trailhead

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Priya Ranjan
Kashyap JoshiKashyap Joshi

Hi Priya,

I am continuously trying to but not yet solved.

I have attached a screenshot of the exact issue, Please guide me regarding this issue.

User-added image