You need to sign in to do that
Don't have an account?
Scott Moran
SFDX: Authorize an Org hangs after login attempt
All,
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.
What am I missing here. Can someone please advise?
Thank you.
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.
What am I missing here. Can someone please advise?
Thank you.
I see you also reached out on https://salesforce.stackexchange.com/questions/335392/sfdx-authorize-an-org-hangs-after-login-attempt
I have tried with sfdx auth:device:login -r https://test.salesforce.com and it works and redirects me to the sandbox
Can you try updating the version of SFDX using "sfdx update" as suggested to see if that fixes the issue.(Related:https://salesforce.stackexchange.com/questions/270606/can-not-update-sfdx)
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Swetha, thank you for the reply. I did perform the update and it didn't fix it. I stioll have the same issue. I tried the sfdx auth:device:login -r https://test.salesforce.com again, however, I still get the following error message:
sfdx auth:device:login -r https://test.salesforce.com
ERROR running auth:device:login: Value is not an string
Salesforce is working on this issue, please see the informtion at this link: view it on GitHub (https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fforcedotcom%2Fcli%2Fissues%2F890%23issuecomment-789802619&data=04%7C01%7Cscott.moran%40kadant.com%7Cfd31183cd6be4246b49e08d8de59e22b%7Cdd37e31f017144658920a1f7a60510e8%7C0%7C0%7C637503824935747392%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=62QGxT3TfFGiPFf9DuWb%2Fj2Q4nHk0poKaW13tcZFePE%3D&reserved=0" style="color:blue; text-decoration:underline)