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

ECONNRESET when loading test files #18

Open
abejfehr opened this issue Oct 4, 2017 · 5 comments
Open

ECONNRESET when loading test files #18

abejfehr opened this issue Oct 4, 2017 · 5 comments

Comments

@abejfehr
Copy link

abejfehr commented Oct 4, 2017

I have no idea what's going on, but the test runner seems to have trouble loading my files:

Here is just one example of many failures that look similar:

Error: Could not load script: "http://localhost:9878/base/src/app/common/components/very-cool-component/very-cool-component.component.test.js?daa8dfd9e97398ffa1c874b0e144e7c990cfc92f"
    at /Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:44:23
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:90:11)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23)
    at Object.check (/Users/myusername/Development/myproject/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:93:23) { Error: read ECONNRESET
    at exports._errnoException (util.js:1014:11)
    at TCP.onread (net.js:609:25) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }

Node version: 8.2.1
NPM version: 5.4.2

@badeball
Copy link
Owner

badeball commented Oct 4, 2017

Hi, @abejfehr. Thanks for reporting the issue! Can you provide me with a minimal example that illustrates the problem and allows me to reproduce it?

@abejfehr
Copy link
Author

abejfehr commented Oct 4, 2017

That's going to be super challenging I think. My guess is that it's caused by the sheer volume of JS files, since it loads hundreds of them just fine, but then fails later on in the process.

I'll see if I can reproduce it at a smaller scale and update this post later

@gordlea
Copy link

gordlea commented May 22, 2018

I'm also getting this with a project that loads hundreds of files.

@booc0mtaco
Copy link

Perhaps the architecture changes mentioned here also apply to this issue? localvoid/karma-snapshot#5

@iapYang
Copy link

iapYang commented Jan 22, 2019

I'm also getting this.

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

5 participants