Friday, March 15, 2019

Salesforce CLI - How to fix error: 'EACCES': listen EACCES 127.0.0.1:1717


I faced the following error today when logging in Salesforce Dev Hub using the CLI.

'EACCES': listen EACCES 127.0.0.1:1717

And what I did to get over it was to change that default port 1717 to something else.

The steps are as below.
  1. Open a Command Prompt window.
  2. Go to a folder in your local machine using cd command. For example, in my case: cd Samples\Salesforce\my_sfdx_project
  3. Create a Salesforce DX project using sfdx force:project:create command. In my case: sfdx force:project:create -n force-proj01
  4. In the newly created folder force-proj01, open sfdx-project.json file and add following line: "oauthLocalPort": "7717",.
    The file will eventually contain:
  5. Log in using the command sfdx force:auth:web:login -d -a DevHub. Now the browser window can open up. Fill in your user name and password to log in.
  6. The browser now will redirect to such a link as http://localhost:1717/OauthRedirect?code=..., which is not existing.
  7. Change the port in the link above from 1717 to 7717 and press Enter.
  8. Now I can log in to Dev Hub successfully.

Thursday, March 14, 2019

Certified Azure Developer - Passed

I just got certified today by taking the transition exam AZ-202.

It was a quick exam with 18 questions. It took me half an hour to complete, even though the allowed time is 150 minutes.