python-eureka-client
python-eureka-client copied to clipboard
FastAPI Cannot run the event loop while another loop is running
I am using this package in my FastAPI project having async function.
eureka_client.init(....)--> Successeureka_client.do_service(......)--> Cannot run the event loop while another loop is running
In async fun, please use
res = await eureka_client.do_service_async(...)
You can use
import nest_asyncio
nest_asyncio.apply()