Skip to content

Instantly share code, notes, and snippets.

@cemerson
Last active October 14, 2024 12:59
Show Gist options
  • Save cemerson/3de8f311f70d9373aa61575e62697f7e to your computer and use it in GitHub Desktop.
Save cemerson/3de8f311f70d9373aa61575e62697f7e to your computer and use it in GitHub Desktop.
SFDX Authorize an Org Issues (notes)

SFDC Authorize an Org Issues

Getting sfdx "Authorize an Org" to work is very hit/miss depending on your luck/setup/etc. This is mainly just a note to myself that when you're on the last part of the auth process where you're at a locahost URL post SFDC login and you get a ERR_CONNECTION REFUSED or other error, try changing the port in the URL to 7717 or 7177 and maybe it will work. This assumes MS Defender/etc have proper firewall rules/exeptions etc in place.

Related Errors/Strings

(mostly here just for metadata/search indexing)

  • ERR_CONNECTION_REFUSED
  • OauthRedirect
  • sfdx force:auth:web:login -a
  • SFDX CLI
  • sf org login web --alias myInstance

Primary Link/Reference:

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

Related Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment