'Vendor Machine API's Postman Collection Issue

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?



Solution 1:[1]

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 :)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1