You need to sign in to do that
Don't have an account?
Amit Jadhav 13
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
1.Go to the Terminal of the Visual studio and Enter the command 'sfdx force:auth:device:login' .
2. Enter ABCDD user code in the verification URL https://test.salesforce.com/setup/connect . ( enter the autogenerated code on your screen ).
3. Login successful for username@sandbox.com. You can now close the browser.
@Sruthi SunderRajan - worked perfectly. Many thanks.
This will help too.
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_troubleshoot_cancel_auth.htm
Using VSCode, open a new "cmd" terminal
OR Using Command Prompt for Windows (Click start, type "cmd" press enter)
1) c:\ netstat -ano | findstr :1717
-a = Displays all connections and listening ports.
-n = Displays addresses and port numbers in numerical form.
-o = Displays the owning process ID associated with each connection.
2) c:\ taskkill /PID [YOUR PID] /F
/F = Specifies to forcefully terminate the process(es).
3) Press F1 and do SFDX: Authorize an Org.
Wait for the CLI to pop up and ask questions, don't interrupt it. Name your connection and GO! It should work now.
Note about sfdx_project.json:
I recommend using your mydomain name for the sfdcLoginUrl in the sfdx-project.json file. Just make sure you get it from Classic, not Lightning. It should look like this: "sfdcLoginUrl": "https://corpadefakeo-sandbox1.my.salesforce.com".
this link will solve the issue