Skip to content
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

Closed

Description

@vikramsamak

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.

Activity

  1. changed the title [-]Eel failed to show html pages...[/-] [+]Eel failed to show html pages after multiple refresh...[/+] on Oct 22, 2022
  2. zinixyt commented on Nov 1, 2022

    @zinixyt

    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.

  3. 1drg commented on Nov 2, 2022

    @1drg

    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?

  4. vikramsamak commented on Nov 3, 2022

    @vikramsamak
    Author

    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.

  5. 1drg commented on Nov 3, 2022

    @1drg

    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.

    What did you ended up using?

  6. vikramsamak commented on Nov 3, 2022

    @vikramsamak
    Author

    Now I am using flaskwebgui which is based on flask.. its working great for me...

  7. dstricks commented on Nov 14, 2022

    @dstricks
    Contributor

    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.

  8. kobayashi-deepinsight commented on Nov 21, 2022

    @kobayashi-deepinsight

    @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.

  9. kobayashi-deepinsight commented on Dec 6, 2022

    @kobayashi-deepinsight

    This issue was already resolved in #453.
    I could have been happy if I made shutdown_delay large enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions