what does a “RuntimeError: There is no current event loop in thread ‘Thread-2’.” error mean? Flask flyf35 — 8 April 2023 · Comments off Solution asyncio.new_event_loop().run_until_complete(main())