-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
1.13.0 [WS] Disconnected, net::ERR_CONNECTION_REFUSED #326
Comments
+1 I'm getting this issue too, 1.12.1 works fine. |
+1 Getting the same problem when going from 1.12.1 to 1.13.0. But I'm using the default port. EDIT: Ok unrelated it seems, |
could be related to this one sockjs/sockjs-client#262 |
I probably introduced this bug with PR #302. I am able to reproduce this bug using vagrant, so I'll look into it soon. |
I'm seeing:
after upgrading webpack-dev-server from v1.10.1 to v1.14.0. I'm using webpack-dev-server directly in node, via:
I tried applying the changes in #328, and I'm still seeing the issue. |
@carpeliam, did you run |
applying #328 fixed it for me. Thank you! (after running |
By downgrade to version 1.12.1, see webpack/webpack-dev-server#326
+1 on the fix with |
When will there be a new release containing the fix for this? |
When @sokra has time for it I think ;). |
@SpaceK33z finally had a chance to come back to this. Looks like it's working for others which is great, but I'm experiencing the same symptom (server logs say Do I need to include an expicit dependency on sockjs and set up the server myself within my own app? EDIT: I had webpack-dev-server listening to port 3001, setting up a proxy to my app running on port 8124. The requests to |
v1.14.1 was released two days ago with this fix in it which is working for me. Have you upgraded to the latest version? If so, what you're seeing might be a different issue. |
@timwingfield, the url should be |
Good question, from my config I think.
|
@SpaceK33z upon more digging, I have a feeling Rails is the culprit here as it's configured to serve the web assets from |
Nope, it was my webpack config. changing the first line in the App array fixed it. |
@timwingfield yes, we use under Rails. I fix it with changing config. Pretty much the same stuff, but I have multiply entries module.exports = {
context: __dirname,
devtool: 'eval',
entry: {
'publisher': publisherEntries,
'manager': managerEntries,
'client': "webpack-dev-server/client?http://localhost:8080"
},
output: {
path: __dirname + "/public/assets/build/",
filename: "[name].js",
publicPath: 'http://localhost:8080/'
},
plugins: plugins,
module: {
loaders: [
{ test: /\.js$/, loaders: ['react-hot', 'babel'], exclude: /node_modules/ }
]
} |
Got it all working now. Thanks @SpaceK33z and @savroff |
@timwingfield I'm having the same issue and attempted your fix. It got rid of the 404s, but, removing the edit: My apologies, adding the no errors plugin fixed it for me. For posterity:
Though this does seem kind of like a band-aid and not an actual fix, I don't know enough about that plugin to really say. It does seem to be working though. |
Hey dudes, getting a similar error, but not sure if it's my implementation or a configuration issue. Any help is appreciated.
When I build I get the following error:
I can't understand why this is because I have set this header value to * in the wpDevMiddleware config. dev-middleware.js
webpack-config.js
|
fixed: webpack-config.js
|
@timwingfield thanks for the tip on where to look! I had |
This issue is referenced here: webpack/webpack-dev-server#326 Signed-off-by: Ian Hilt <[email protected]>
@timwingfield Nice one, I was having exactly the same issue! I've updated the dev server wiki to reflect the need for the additional |
Try to edit
Before
after
|
@leedium's fix worked for me. i.e. using webpack-hot-middleware instead of webpack-dev-server in the config file. But why is the question. |
thanks @leedium, it worked for me. |
I have the same issue as @dannguyen. Updated to 1.16 and had to revert to 1.12 because the constant disconnects caused my browser to stall completely for 10 seconds roughly every 30 seconds. Any chance of a fix? |
Did you make sure to use the same port in the |
@AlexFrazer yup! |
@timwingfield I am using angular-cli, i can't edit webpack config, do you know any other solution for angular-cli users? |
For versions greater than 1.12.1 The WebSocket connection seems to be broken.
In the console I get the errors:
My Webpack Config looks like this:
As you can see the port is set to 3000 and I also access the page via
http://localhost:3000/
but the WebSocket connections seems to ignore the port and tries to connect tohttp://localhost/info
I am new to webpack so I am not quite sure if I am doing something wrong but as it was working a few days ago and also works if I downgrade to 1.12.1 I suppose it's an error with webpack-dev-server.
The text was updated successfully, but these errors were encountered: