Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERR_CONNECTION_FAILED on Chrome/IE after 20 minutes of working when internet is still connected

Hoping this is the right place to ask this. I'm trying to learn React Native and I'm using Expo as my medium for deployment, but I'm finding that I'm literally getting 20 minutes at a time before my browser fails to connect with the error code ERR_CONNECTION_FAILED. I've tried the following:

  • netsh winsock reset, then the related ipconfig commands for flushing DNS settings
  • Clearing browser caches
  • Updating drivers

I'm at my wits end as the only thing that completely solves it is restarting my laptop, which for obvious reasons isn't feasible every 20 minutes, so I'm hoping somebody can help.

like image 296
bendoc1996 Avatar asked Sep 29 '19 21:09

bendoc1996


People also ask

Why is my Chrome not working even with good connection?

rebooting the computer. resetting Chrome (deleting all Content & Cookies; restoring all default browser settings) launching Chrome with no extensions, as well as in incognito mode. disabling all extensions manually.

What does Err_connection_failed mean?

This error code problem indicates that the attempt to connect to the server failed. This Webpage is not Available ERR_CONNECTION_FAILED Chrome is the most common error which users get when browsing the internet.

Why does my Google Chrome keep timing out?

The timed-out error is usually due to no communication between your browser and the website you are trying to access. This is because either your browser cannot receive the data or the time it took crossed the timeout session and couldn't establish a connection.

Why does websites keep closing connection?

The ERR_CONNECTION_CLOSED message is an error that you might see in Chrome when you try to access a website. It means that something's going wrong with your device's connection that's preventing Chrome from successfully connecting to the website's server.


1 Answers

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:

  1. WIN+R -> services.msc
  2. Find LxssManager
  3. 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.

like image 195
knot22 Avatar answered Sep 19 '22 15:09

knot22