Eel icon indicating copy to clipboard operation
Eel copied to clipboard

Blocking False is not working

Open theRealProHacker opened this issue 3 years ago • 1 comments

Eel version 0.14.0

Describe the bug When I use the eel.start("index.html", blocking=False) statement then the browser opens with the index.html document and everything is right, but the server isn't responding anymore (reload doesn't work or takes really long time) and the browser console tells me Uncaught SyntaxError: Unexpected identifier at index.html:1 sometimes it might also be at VMnn:1 (n: some digits) even though this error never comes under other circumstances. The error also sometimes leads to the JavaScript not loading.

To Reproduce Steps to reproduce the behavior:

  1. Open up python and call the eel.init("web") function
  2. Then call the eel.start("index.html", blocking=false)
  3. Click on reload (F5) or open the browser console
  4. See error

Expected behavior There shouldn't be an error in the browser console, the JS should be loading and also I should be able to reload the page in decent time

Screenshots Screenshot 1

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version Version 89.0.4389.128 (official build) (64-bit)

theRealProHacker avatar Apr 19 '21 14:04 theRealProHacker

It's difficult to know without seeing your code. If you use blocking=False then you need to implement your own method for stopping the Python script from running to the end and quitting.

ChrisKnott avatar Jul 22 '21 10:07 ChrisKnott