Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

annabelka's avatar

Error with lost connection with internet on Laravel php website ERR_INTERNET_DISCONNECTED

Hello. There is the same problem on 2 sites on the laravel framework.

The error in losing the Internet connection is not reproduced constantly and on different devices with different OS (mac / Chrome, HP / ubuntu ...).

After the computer goes to sleep and it is turned off and then turned on - in a browser where many tabs are open - but it is on these two sites that the connection loss error is shown - ERR_INTERNET_DISCONNECTED. (everything is fine with the rest of the open tabs)

After refreshing the page, everything is fine. But this loss of connection is a problem

Use: laravel framework: 5.8 php: 7.1

Perhaps someone had such a problem or have any ideas where to look for the cause?

0 likes
4 replies
Tray2's avatar

This has nothing to do with Laravel.

It's most likely that when the computer (Server) goes to sleep aka hibernate it turns of the network adapter. I suggest checking the power save settings

annabelka's avatar

I do not think that the question is in the PC settings. Since the situation is repeated for different people on different devices. And only with these two sites. The rest of the sites are fine

siangboon's avatar

as what I understanding, chrome or other Internet browser will try to re-fetch the site content once the tabs are re-opened or otherwise it will show the cached content... The "ERR_INTERNET_DISCONNECTED" error usually will appeared when there is internet connection error or the browser trying to connect to the site and does not getting response hence it assumed the connection disconnected... in your case, it seem that server does not response in time to the browser... As what I understanding, Laravel or any type of production website would not have such problem and usually the "Keep-Alive" feature is enabled... are you referring your own pc local website?

annabelka's avatar

No, these are production sites, just on the local environment there is no such problem

Please or to participate in this conversation.