ERR_CONNECTION_FAILED on Chrome/IE after 20 minutes of working when internet is still connected
I'm experiencing the same issue with Expo in this environment:
- Windows 10, version 1909 (OS build 18363.476)
- using WSL (Windows Subsystem for Linux) with Ubuntu 18.04 LTS
These links were useful to learn why this is happening:
- https://github.com/expo/expo-cli/issues/99
- https://github.com/microsoft/WSL/issues/2913
- https://github.com/microsoft/WSL/issues/3951
In essence, this issue seems to be due to a problem with WSL. Per a post in the first link, I tried the alternative to restarting the computer and it worked - it made the ERR_CONNECTION_FAILED problems disappear...for 20 minutes. That alternative is as follows:
- WIN+R -> services.msc
- Find LxssManager
- Right-click -> Restart
This restarts the WSL service which also means that the WSL instance that was running gets terminated. This is less than ideal, but at least a computer restart is avoided. The third link says this WSL problem is fixed in Windows Insider Build 18890.
I am now considering spinning up a VM to run Ubuntu instead of trying to use WSL for Expo projects.