Skip to content

devServer.sockPath #2535

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

Closed
jiankafei opened this issue Apr 24, 2020 · 7 comments · Fixed by #3260
Closed

devServer.sockPath #2535

jiankafei opened this issue Apr 24, 2020 · 7 comments · Fixed by #3260

Comments

@jiankafei
Copy link

jiankafei commented Apr 24, 2020

Bug report

What is the current behavior?

  1. Using "devserver.sockPath" will make hot updates cross domain.
  2. Devserver.sockPath does not work.

If the current behavior is a bug, please provide the steps to reproduce.

  1. Use nginx to proxy the local service. The local service uses domain name access. If you do not use "devserver.sockPath", there will be no cross domain problem. If you use it, there will be cross domain problem.
  2. Devserver.sockPath itself is not working.

What is the expected behavior?

  1. Correct hot update with devserver.sockPath.
  2. Devserver.sockPath works normally.

Other relevant information:
webpack version: 4.43.0
Node.js version: 12.16.1
Operating System: win10
Additional tools: nginx, yarn

@alexander-akait alexander-akait transferred this issue from webpack/webpack Apr 24, 2020
@alexander-akait
Copy link
Member

Please create reproducible test repo

@alexander-akait
Copy link
Member

Can't reproduce

@jiankafei
Copy link
Author

Please create reproducible test repo

Wait a moment

@jiankafei
Copy link
Author

Please create reproducible test repo
Use this project to test:
https://github.com/jiankafei/wds-test

@jiankafei
Copy link
Author

@evilebottnawi https://github.com/jiankafei/wds-test

@alexander-akait
Copy link
Member

@jiankafei Thanks I will look in this in near future

@desmap
Copy link

desmap commented Sep 21, 2020

@jiankafei @evilebottnawi I have the same issue and despite having devServer.sockPath: '/app/sockjs-node' I get in Chrome Inspector first...

sockjs.js:1606 GET http://mydevserver.com:8999/sockjs-node/info?t=1600683780379 404 (Not Found)

...then a few times...

WebSocket connection to 'ws://mydevserver.com:8999/app/sockjs-node/224/cidsxlef/websocket' failed: Invalid frame header
[WDS] Disconnected!

fwiw, I have devServer reverse-proxied via express and http-proxy-middleware.
I tried with both webpack 4.43 and 5.0.0-rc.0

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

Successfully merging a pull request may close this issue.

3 participants