Home > Blockchain >  Vendor Machine API's Postman Collection Issue
Vendor Machine API's Postman Collection Issue

Time:05-15

I am trying to create a postman collection for a Vendor machine API but when I try to send a login request localhost:3000/auth/login I get connect ECONNREFUSED 127.0.0.1:3000

Could the below error be the one making postman not respond to endpoint requests or is there a way of providing the port 3030?

CodePudding user response:

Thanks to Torsten and Jay McDoniel. They helped me realize that I was doing it the wrong way! I had indicated PORT=1003 in my .env file, so I ought to have used localhost:1003/... The default is localhost:3000/... that is to be used when no port is provided in the .env file. So I was using port 3000 when I had a port already specified in the .env file i.e. 1003 :)

  • Related