webex_bot
webex_bot copied to clipboard
Using webexbot in an existing FastAPI/uvicorn app
- Webex Bot version:
- Python version:
- Operating System:
Description
Current webex bot doesn't seem to work with running in an existing FastAPI application (via uvicorn) because of its current usage of asyncio.get_event_loop(), resulting in an error that an event loop is already in progress. Are there any recommended approaches to use this library in the above scenario ?
What I Did
In the mean time, I am able to get it to work with lot of custom patching - I will try to rework to see if I can get a PR going.
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.