Unable to authorize org due to Salesforce CLI extension issue
See original GitHub issueIssue Type: Bug
Even after reinstallation of the Extension Pack, it is not working like earlier.
- Ctrl + Shift + P to SFDX:Authorize an Org
- Select test.salesforce.com Sandbox
- Type Name of Org and Enter.
- A browser window should pop-up for user to sign in to desired org BUT this is not happening.
ERROR : SFDX Authorize an Org failed to Run Source: Salesforce CLI Integration (Extension)
Extension version: 52.7.0 VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i5-1035G1 CPU @ 1.00GHz (8 x 1190) |
GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 11.77GB (3.38GB free) |
Process Argv | –crash-reporter-id 27ab91dc-355c-4823-b072-477ecd035aca |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
pythonvssor306:30344512
bridge0708:30335490
Issue Analytics
- State:
- Created 2 years ago
- Comments:27 (5 by maintainers)
Top Results From Across the Web
Authorize Org failed in VS Code - Salesforce Stack Exchange
Run command prompt as admin (Start > cmd > Right-Click > RunAs Admin) · Run the command: netstat - ...
Read more >SFDX: Authorize an Org failed to run - Salesforce Developers
1. Download Salesforce cli and install. 2. Open Command prompt and write - sfdx update. It will update CLI to the latest version....
Read more >SFDX: Authorize an Org failed to run - what should I do?
Regarding sfdx authorize an org failed to run, verify if salesforce CLI is installed successfully or not . Add the path of the...
Read more >Salesforce Tips - Resolve Org Authorization Error in VS Code
In this blog we will discuss how to resolve the Authorization error while executing SFDX command “Authorize an Org” in VS Code.
Read more >SFDX Authorize an Org failed to run - Stack Overflow
Try to reinstall sfdx-cli i have similiar problem on mac and reinstall helps me try additionaly sfdx update .
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
I fixed this issue only by formatting the laptop. Installed VS Code again and all the steps mentioned in here (https://developer.salesforce.com/tools/vscode/en/getting-started/install#salesforce-cli). Working fine now. Please close this ticket.
Hi @bmathew83, sorry you’re still working with this! Can you run
sfdx version --verbose --json
and send us the results? Also, are you able to run this command without error in the terminal, from the root of your project directory?sfdx force:auth:web:login --setalias testOrgName --instanceurl https://test.salesforce.com --setdefaultusername