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.

Unable to authorize org due to Salesforce CLI extension issue

See original GitHub issue

Issue Type: Bug

Even after reinstallation of the Extension Pack, it is not working like earlier.

  1. Ctrl + Shift + P to SFDX:Authorize an Org
  2. Select test.salesforce.com Sandbox
  3. Type Name of Org and Enter.
  4. 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:closed
  • Created 2 years ago
  • Comments:27 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
bmathew83commented, Feb 4, 2022

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.

1reaction
randi274commented, Dec 17, 2021

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

Read more comments on GitHub >

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

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