-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Refreshing the page causes ERR_STREAM_WRITE_AFTER_END error #47
Comments
I tested locally, even forcing a refresh (ctrl + shift + R) and i did not get an error... i'll see if i can create a windows box to test those types of problems. |
@G-Rath I couldn't reproduce on my end, but that may very well be a windows-only issue. Open up socket.on('error', (...args) => {
console.log('socket error', ...args)
}); If that doesn't trap the error, try socketServer.on('error', (...args) => {
console.log('server error', ...args);
}); Either of those might trap the error and prevent the output you're seeing. (Of course, you can also use an inspector if you'd like to go that route.) |
@G-Rath I think we've narrowed this problem down to a regression in Node 10.14.x. Try downgrading to 10.13.x and I'd bet you no longer see this error (that was the behavior we observed). I've reported this to the Node folks in the mean time. |
Confirmed. The node maintainers have identified this as a regression that snuck in. The solution is to use 10.0.0 - 10.13.0 until that gets fixed. Given that this is confirmed an upstream problem that's affecting more than this module, I'm gonna close it. Cheers for reporting this originally, you helped a great many people by pointing out the problem 🍻 |
@shellscape could you link to the relevant material on the node side of things, so we can watch the issue? |
Yeah for sure nodejs/node#24958 |
Is 10.15 compatible? This was fixed nodejs/node#24958 (comment) |
@lxe in theory it should be :) haven't tested it yet. |
When refreshing the page with
hmr
enabled (and connected via websocket to the serve server), an exception is logged to the webpack console.This doesn't actually stop anything from working.
v4.26.1
Windows 10, Chrome 71.0.3578.80
v10.14.1
v0.1.2
How Do We Reproduce?
https://github.com/G-Rath/js-bugs/tree/base/webpack-plugin-serve
Expected Behavior
No errors in webpack console when refreshing page.
Actual Behavior
Error is logged:
The text was updated successfully, but these errors were encountered: