Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect ECONNREFUSED 127.0.0.1:4001 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) #59

Open
mrhouzlane opened this issue Aug 31, 2022 · 3 comments

Comments

@mrhouzlane
Copy link

While running npm run test , I have this error :

Screenshot 2022-08-31 at 19 48 19

Environment : Ubuntu
node version : v18.8.0

Screenshot 2022-08-31 at 19 50 00

@jneurock
Copy link
Collaborator

It looks like Mirage isn't set up quite right or possibly not properly intercepting network requests. Mirage should intercept network requests so you never get to this point. From the error you shared, there aren't any clues that point to one of those problems or the other.

@mrhouzlane
Copy link
Author

It looks like Mirage isn't set up quite right or possibly not properly intercepting network requests. Mirage should intercept network requests so you never get to this point. From the error you shared, there aren't any clues that point to one of those problems or the other.

I have installed mirage : npm install --save-dev miragejs @miragejs/graphql

The error may is related to the port, but it is not obvious for this case.

@jneurock
Copy link
Collaborator

Did you configure Mirage after the install? If so, can you share the config? If not, you'll need to configure it to run when you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants