[SalesForce] Issue while authorizing an org : Kill the process running on port 1717

Currently I am unable to authorize an org due to the below error.

Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.

I have tried below solutions but it's not resolved.

Solution 1 : I have tried to kill the process in the task manager but there is nothing running on port 1717.
Solution 2 : In the cmd I tried finding the task by running the command netstat -ano|findstr "PID :1717" and killed the task. but after that getting another error.

{ Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs:
   [ '/c',
     'start',
     '""',
     '/b',
     'https://test.salesforce.com//services/oauth2/authorize?response_type=code^&client_id=PlatformCLI^&redirect_uri=http%3A%2F%2Flocalhost%3A1717%2FOauthRedirect^&state=451887445146^&prompt=login^&scope=refresh_token%20api%20web^&code_challenge=gjWHT_AYIT0yXb4EJzshQJRgojLGn0yWAiM781vKs10' ] }

Best Answer

Try with below option ;

  • Go to the windows task manager.
  • Search for node.js running application, might need to scroll down and there you can find it.
  • Kill the process.

Hope this helps!

Related Topic