Vuepress: WebSocket connection to 'ws://0.0.0.0:8081/' failed

Created on 18 Apr 2018  路  11Comments  路  Source: vuejs/vuepress

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

Most helpful comment

@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.

All 11 comments

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

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

@ulivz THX馃槝. localhost is available.

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

@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.

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

// .vuepress/config.js

{
  host: 'localhost',
}

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?

@cfjedimaster It has already been fixed at https://github.com/vuejs/vuepress/commit/4d5c50e4455fdea18fbd62225889f70654d4b0c0, I think.

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

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

Is there any chance to have this fixed?

me too, I have this issue with vuepress/1.0.0-alpha.31 linux-x64 node-v11.6.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ynnelson picture ynnelson  路  3Comments

higuoxing picture higuoxing  路  3Comments

gaomd picture gaomd  路  3Comments

herrbischoff picture herrbischoff  路  3Comments

ynnelson picture ynnelson  路  3Comments