I ran the program, it works for a couple of minutes, and then it gives an error.
Unable to access site.
The localhost site is unable to establish a connection.
ERR_CONNECTION_REFUSED
The error occurs after switching from one html page to another. I tried every solution I could find but nothing worked.
import eel
eel.init('web')
eel.start('main.html', size=(830, 550), mode='chrome', port=8080, host='localhost')
I think that the mistake is that I start to work on one html page, and then move on to another. But at the same time, the program normally works for some time and then it breaks.
<header>
<nav>
<ul class="head">
<li><a href="main.html">Основная</a></li>
<li><a href="forDevops.html">Разработчикам</a></li>
<li><a href="info.html">Теория</a></li>
</ul>
</header>
This is my header, all pages can open, but after a few minutes eel gives an error message.
If I open the html page in google everything works well. But if I use EEL and open the page as an application it doesn't work.
Let me know if you need any additional information for the code above.