# Suddenly get ECONNREFUSED on everything Graphql related

**URL:** <https://community.postman.com/t/suddenly-get-econnrefused-on-everything-graphql-related/65316>\
**Category:** Help Hub\
**Tags:** graphql, bug, connection\
**Created:** [August 7, 2024, 10:33am UTC](https://community.postman.com/t/suddenly-get-econnrefused-on-everything-graphql-related/65316 "2024-08-07T10:33:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacecraft-meteorolo](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@spacecraft-meteorolo](https://community.postman.com/u/spacecraft-meteorolo)\
**Post date:** [August 7, 2024, 10:33am UTC](https://community.postman.com/t/suddenly-get-econnrefused-on-everything-graphql-related/65316/1 "2024-08-07T10:33:01Z")

</div>

This setup has worked without issue for well over a year:  
Devcontainer for VScode, windows, WSL. This is running an apollo Graphql server on port 4000

I use postman to test the server, and both introspection and requests have worked without issue.

for some reason a few days ago Postman started throwing up:

```auto
Could not load GraphQL schema.

connect ECONNREFUSED ::1:4000

```

with the same ECONNREFUSED error if making a request.  
the really odd thing is:

- doing a GET request from postman to the same endpoint does connect, and generates the appropriate apollo error
- the endpoint can be reached from the browser and other tools
- other team members (mac users but same devcontainer setup) have no issue

I’ve reinstalled and reset everything, checked firewall, quadruple checked auth, URL … I have no idea where to go from here troubleshooting and any ideas at all would be appreciated

---

<div class="post-metadata">

**Author:** ![parth-verma-1](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@parth-verma-1](https://community.postman.com/u/parth-verma-1)\
**Post date:** [August 7, 2024, 7:11pm UTC](https://community.postman.com/t/suddenly-get-econnrefused-on-everything-graphql-related/65316/2 "2024-08-07T19:11:51Z")

</div>

Hi,  
We are tracking this issue on [Github](https://github.com/postmanlabs/postman-app-support/issues/13052).  
I am assuming this is happening when you are sending requests to `localhost:4000`? As a workaround, I would suggest sending it to `127.0.0.1` to avoid the `ENOTFOUND` error.

---

<div class="post-metadata">

**Author:** ![spacecraft-meteorolo](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@spacecraft-meteorolo](https://community.postman.com/u/spacecraft-meteorolo)\
**Post date:** [August 7, 2024, 7:25pm UTC](https://community.postman.com/t/suddenly-get-econnrefused-on-everything-graphql-related/65316/3 "2024-08-07T19:25:20Z")

</div>

thank you!, using `127.0.0.1:<port> ` works.

can’t beleive i tried every workaround but this 🤦‍♂️

---

<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:** [August 10, 2024, 7:25pm UTC](https://community.postman.com/t/suddenly-get-econnrefused-on-everything-graphql-related/65316/4 "2024-08-10T19:25:49Z")

</div>

Closed on August 10, 2024, 7:25pm UTC

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