VS Code Error: connect ECONNREFUSED 127.0.0.1:8080

On my Mac, I open my file in VS Code, open terminal and enter in npm install then npm run.

When I go to POST in Postman I receive the following error:

POST http://localhost:8080/api/v1/users

Error: connect ECONNREFUSED 127.0.0.1:8080

:arrow_forward:Request Headers

Content-Type: application/json

User-Agent: PostmanRuntime/7.36.1

Accept: /

Postman-Token: 4a809958-5d2e-4bd0-9d69-879a9f769e6e

Host: localhost:8080

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

How do I fix this error?

Hi @descent-module-geos5. Welcome to the Postman Community!

This typically means that there is nothing running on the specified port, hence the connection to that port was refused. Ensure that your server is running correctly and is indeed listening to requests on port 8080.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.