[Solved] Intermittent “Event loop stopped before Future completed.”


Barring a bug in asyncio, the issue is likely caused by a call to loop.stop() hidden somewhere in the code base. You probably want to remove or disable those, as they are fundamentally incompatible with run_until_complete, as well as with the more modern asyncio.run.

solved Intermittent “Event loop stopped before Future completed.”