Cyril Nicodème
Cyril Nicodème
For now, the workaround that I have found, that works, but still displays the InvalidStateError, is the following: In the `finally` block: ```python try: await asyncio.wait_for(page.setJavaScriptEnabled(False), timeout=0.25) except Exception as...
Hi @CannedSurprise , > Does reaching the timeout in an async.wait_for() block automatically lead to Chrome closing the connection to pyppeteer abnormally? I'd say no. Your code part should kill...
@CannedSurprise That's interesting! So by using the timeout from Chrome DevTools, you didn't had the issue anymore? If I understand correctly, that's something we can dig !
I have this one liner to ignore dialogs, maybe that would help? ```python page.on('dialog', lambda dialog: dialog.dismiss()) ```
Maybe I have a solution for you. When you run Chrome, did you add the "--disable-popup-blocking" parameter? This one might help you ;)
It should disable popup blocking ;) From my understanding, it would enable the one liner to work.
Any news about this issue? I'm still having the error throwed.
Unfortunately no, I stopped listening to requests.
TLDR: I hope there will be an easy way to trigger a restart at Sanic from the CLI and outside the app. --- I read the #2499 carefully. It seems...
Yes! Both are great! I can either keep my external script running and call the CLI to restart the APP, or integrate the webhook directly in my app and restart...