Suddenly get ECONNREFUSED on everything Graphql related

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:

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

Hi,
We are tracking this issue on Github.
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.

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

can’t beleive i tried every workaround but this :man_facepalming:

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