NoRouteToHostException on client or server?

后端 未结 6 2728
無奈伤痛
無奈伤痛 2021-02-19 19:24

I am getting

Caused by: java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.do         


        
6条回答
  •  半阙折子戏
    2021-02-19 20:06

    In my case it was solved like this:

    1 - Clear the cache with 'yarn cache clean' or 'npm cache clean --force'

    2 - after that reboot the pc.

    If you clear the cache but do not reboot, the data will still be stored 'somewhere' on the network, so the port will not connect, it is still busy. After restarting it connects smoothly.

    I hope I was helpful!

提交回复
热议问题