You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Eel failed to show html pages after multiple refresh... #627
when I purposefully refreshed the index, it failed to reload it... is there any solution for this...
Note: I'm working on data science app in which I am showing some pie charts on frontend (by fetching data from python code) and that's why I was checking the performance of eel and the I found this bug.
Since i dont see any activity from the original developr im going to tell you the solution to the problem from my own experience.
Eel has a function that detects if the browser is still active, if it detects the page has been closed/refreshed it stops the python script. So, reloading is not compatible with refreshes. This feature is intended.
Since i dont see any activity from the original developr im going to tell you the solution to the problem from my own experience. Eel has a function that detects if the browser is still active, if it detects the page has been closed/refreshed it stops the python script. So, reloading is not compatible with refreshes. This feature is intended.
I have been using eel for a while, and now and then I randomly get crashes when reloading a page or going to another page.
I generally get this on console:
WebSocket connection to 'ws://localhost:60220/eel?page=index.html' failed:
And the eel.js file points the error to this line:
eel._websocket = new WebSocket(websocket_addr);
All my html files have the eel.js tag btw.
Is there anything that could be done to solve this or make it more reliable?
Hey @vikramsamak, I'm sorry you were having trouble! I hope that flaskwebgui works better for your use case. Do you by chance have a small example where the issue is easily reproducible so that I can take a look and see for myself? Or anyone else that is willing to create an example would also be appreciated.
@dstricks
I also face similar issues during multiple refreshes or heavy page transitions.
This tends to happen with transitions to large html pages, but it also reproduces with a very fast hit of the F5 key.
Launch ElloWorld and do a quick F5 refresh many times and you should be able to reproduce this.
Activity
[-]Eel failed to show html pages...[/-][+]Eel failed to show html pages after multiple refresh...[/+]zinixyt commentedon Nov 1, 2022
Since i dont see any activity from the original developr im going to tell you the solution to the problem from my own experience.
Eel has a function that detects if the browser is still active, if it detects the page has been closed/refreshed it stops the python script. So, reloading is not compatible with refreshes. This feature is intended.
1drg commentedon Nov 2, 2022
I have been using eel for a while, and now and then I randomly get crashes when reloading a page or going to another page.
I generally get this on console:
WebSocket connection to 'ws://localhost:60220/eel?page=index.html' failed:And the eel.js file points the error to this line:
eel._websocket = new WebSocket(websocket_addr);All my html files have the eel.js tag btw.
Is there anything that could be done to solve this or make it more reliable?
vikramsamak commentedon Nov 3, 2022
After seeing this many issues, I moved to another lib which also provides the facility of developing desktop based application by using HTML CSS JS.
1drg commentedon Nov 3, 2022
What did you ended up using?
vikramsamak commentedon Nov 3, 2022
Now I am using flaskwebgui which is based on flask.. its working great for me...
dstricks commentedon Nov 14, 2022
Hey @vikramsamak, I'm sorry you were having trouble! I hope that flaskwebgui works better for your use case. Do you by chance have a small example where the issue is easily reproducible so that I can take a look and see for myself? Or anyone else that is willing to create an example would also be appreciated.
kobayashi-deepinsight commentedon Nov 21, 2022
@dstricks
I also face similar issues during multiple refreshes or heavy page transitions.
This tends to happen with transitions to large html pages, but it also reproduces with a very fast hit of the F5 key.
Launch ElloWorld and do a quick F5 refresh many times and you should be able to reproduce this.
kobayashi-deepinsight commentedon Dec 6, 2022
This issue was already resolved in #453.
I could have been happy if I made shutdown_delay large enough.