Skip to content

Error Messages

Frequently identified error messages can be recorded in this section.

RuntimeError: asyncio.run() cannot be called from a running event loop

Section titled “RuntimeError: asyncio.run() cannot be called from a running event loop”

If your calling program runs it’s own event loop, then Apprise can cause some commotion when it tries to work with it’s own. For these circumstances you have 2 options:

  1. Do not call notify(). Instead await the async_notify() call itself. See here for more details.

  2. Leverage a library that handles this exact case called nest-asyncio:

    Terminal window
    pip3 install nest-asyncio

    Then from within your python application just import it at the top:

    import nest_asyncio
    # apply it
    nest_asyncio.apply()

    An issue related to FastCGI was brought forth here and solved using this method.

Questions or Feedback?

Documentation

Notice a typo or an error? Report it or contribute a fix .

Technical Issues

Having trouble with the code? Open an issue on GitHub:

Made with love from Canada