salesforcedx-vscode: Unable to authorize org due to Salesforce CLI extension issue
Issue 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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 39 (10 by maintainers)
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.
Glad its working for you now, @dee1110. Happy to help.
@klewis-sfdc VS Code FINALYYYYYYYY recognizes my sfdx. THANK YOU SO MUCH!
@dee1110 It looks like
sfdx
might not be in your PATH, which tells your computer how to find it. Can you try following the instructions here to addsfdx
to your PATH and see if that resolves your issue?Hi @dee1110, can you let us know what version of the extensions you have installed?
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