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

WebSocket connection to 'ws://0.0.0.0:8081/' failed #123

Closed
fjc0k opened this issue Apr 18, 2018 · 11 comments
Closed

WebSocket connection to 'ws://0.0.0.0:8081/' failed #123

fjc0k opened this issue Apr 18, 2018 · 11 comments

Comments

@fjc0k
Copy link
Contributor

fjc0k commented Apr 18, 2018

Platform

Win 8 + Node v9.10.0

Reproduction

  1. git clone https://github.com/fjc0k/blogs.git
  2. yarn & yarn dev
  3. open http://localhost:8080/blogs/
  4. open console
  5. you will see WebSocket connection to 'ws://0.0.0.0:8081/' failed: Error in connection establishment: net::ERR_ADDRESS_INVALID
@ulivz
Copy link
Member

ulivz commented Apr 18, 2018

Cannot repro at my local (macOS 10.12.6). seems like a defect of webpack-server: webpack-contrib/webpack-serve#56 at windows.

Don't know if it can solve your problem: try to set host to localhost and revisit.

@fjc0k
Copy link
Contributor Author

fjc0k commented Apr 18, 2018

@ulivz THX😘. localhost is available.

@ulivz ulivz closed this as completed Apr 18, 2018
@MartonEstok
Copy link

@fjc0k can you explain please how you solved this ? I have the same error on Win 10. Thanks!

@fjc0k
Copy link
Contributor Author

fjc0k commented Apr 19, 2018

@MartonEstok open .vuepress/config.js, set host to localhost.

@ulivz maybe this is a bug by vuepress webpack config, because the others build tools is ok to use on my computer.

@fjc0k
Copy link
Contributor Author

fjc0k commented Apr 19, 2018

@ulivz if not a bug, maybe we should doc it.

@gauseen
Copy link

gauseen commented Apr 20, 2018

// .vuepress/config.js

{
  host: 'localhost',
}

@cfjedimaster
Copy link

Query - why was this closed? If the default behavior has the error being thrown, shouldn't it be corrected? Or perhaps automatic reload be disabled unless the host config value is set?

@meteorlxy
Copy link
Member

@cfjedimaster It has already been fixed at 4d5c50e, I think.

@cfjedimaster
Copy link

Ah - I assume that's not live yet? (I Installed yesterday.)

@andreapernici
Copy link

andreapernici commented Oct 18, 2018

Me too. I installed it yesterday and still see the error.

Is there any chance to have this fixed?

@changsijay
Copy link

me too, I have this issue with vuepress/1.0.0-alpha.31 linux-x64 node-v11.6.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

No branches or pull requests

8 participants