I am on a Windows 10 laptop with the latest patches and updates from Microsoft Version 10.0.18363. When I attempt to Authorize an Org it opens Google Chrome Version 88.0.4324.190 (Official Build) (64-bit). I login using the login I've been using successfully since yesterday, I get the prompt to Allow Access, and it just hangs. I am currently running VS Code Version: 1.53.2. I have the Salesforce Extension Pack v51.2.0, and the same for the Salesforce CLI Integration.

I'm using sfdcLoginUrl = https://test.salesforce.com

When I execute the Authorize an Org it sends me to the following URL provided I have Revoked the previous attempt: https://<my_org_name>/setup/secur/RemoteAccessAuthorizationPage.apexp?source="very long string"

  1. I am unable to find port 1717 running using suggestions previously mentioned.
  2. I have uninstalled VS Code twice and deleted everything the second time before re-installing.
  3. I have switched the Default browser to Edge each time and this doesn't work. I even tried IE once!!
  4. I look for node.js running and if I kill that process the web browser immediately throws me into the unable to open local port 1717.
  5. I've tried sfdx auth:web:login instead of sfdx force:auth:web:login and this does not work.
  6. After the failed attempts I Revoke the Salesforce CLI found under my login ID.
  7. In my troubleshooting I've seen OAuth Error
  8. I have set the Google Chrome to run in Windows 8 compatibility mode as well. This doesn't help either.
  9. I added the C:\Windows\System32 to the PATH environment variable as well.
  10. I also tried logging in with our Salesforce Admin credentials and that didn't work either.

What am I missing here. Can someone please advise?

Thank you.

3 Answers 3


Most of us have this issue with Authorization command. Something may be broken in cli.

One workaround is with this command:

// authorize production org
sfdx auth:device:login

// authorize sandbox 
sfdx auth:device:login -r https://test.salesforce.com

// authorize devhub
sfdx auth:device:login -d -a <devhub alias>

Here is the link to related issue in GitHub. Another workaround mentioned is to set default browser to Edge or Firefox instead of Google Chrome.

  • Raul, thank you for the reply. That works but forces me to go to production. Is there a way to specify the sandbox?
    – SAM
    Commented Feb 26, 2021 at 18:24
  • Added the second command to specify instance url from documentation.
    – Raul
    Commented Feb 26, 2021 at 18:28
  • Raul, I had tried that and I get the following error message: ERROR running auth:device:login: Value is not an string. The error message came from the second command.
    – SAM
    Commented Feb 26, 2021 at 18:36
  • I am not sure, its working fine for me.
    – Raul
    Commented Feb 26, 2021 at 18:50
  • Please update sfdx cli and try again
    – Raul
    Commented Feb 27, 2021 at 3:12

I had the same error since a few days. Simply doing a "sfdx update" in the command line solved the problem for me...

Currently I'm on sfdx-cli version 7.88.4 (sfdx --version)

  • Chris, thanks for the reply. I did perform the update and I now have the latest version, but I'm still getting the same issue. Tried shutting down VS Code and restarting but that didn't work either!!
    – SAM
    Commented Feb 26, 2021 at 20:17
  • Please this thread for the latest informationj:github.com/forcedotcom/cli/issues/890#issuecomment-789618346
    – SAM
    Commented Mar 3, 2021 at 12:12

I am also exactly facing the same issue from one week, today I have updated CLI, updated from 7.89.2 to 7.90.2

after this update problem got resolved

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .