# VS Code Error: connect ECONNREFUSED 127.0.0.1:8080

**URL:** <https://community.postman.com/t/vs-code-error-connect-econnrefused-127-0-0-1-8080/57205>\
**Category:** Help Hub\
**Tags:** tests, collections\
**Created:** [February 2, 2024, 3:41am UTC](https://community.postman.com/t/vs-code-error-connect-econnrefused-127-0-0-1-8080/57205 "2024-02-02T03:41:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![descent-module-geos5](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@descent-module-geos5](https://community.postman.com/u/descent-module-geos5)\
**Post date:** [February 2, 2024, 3:41am UTC](https://community.postman.com/t/vs-code-error-connect-econnrefused-127-0-0-1-8080/57205/1 "2024-02-02T03:41:18Z")

</div>

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](http://localhost:8080/api/v1/users)

Error: connect ECONNREFUSED 127.0.0.1:8080

▶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?

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [February 2, 2024, 12:36pm UTC](https://community.postman.com/t/vs-code-error-connect-econnrefused-127-0-0-1-8080/57205/2 "2024-02-02T12:36:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [March 3, 2024, 12:37pm UTC](https://community.postman.com/t/vs-code-error-connect-econnrefused-127-0-0-1-8080/57205/3 "2024-03-03T12:37:28Z")

</div>

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