Hi everyone,
I try to use the Zeep as a soap client with Fastapi in asynchronous mode.
But the problem is that for Zeep transport need a event loop.
When I get a command loop = asyncio.get_running_loop(),
a error occurs: WSDL loading is not asynchronous yet. Instantiate the zeep client outside the asyncio event loop.
How to fix it ?
Please follow the question template. Also it looks like it's more of a Zeep issue?
I think fastapi run none async fun outside a loop
async functions need to run inside a async one
you did not provide your code but I guess you need to call loop = asyncio.get_running_loop() inside a async function not a sync one
Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.
Thanks for the help here everyone!
@Harry2049 if you still have problems, and if they apply to FastAPI, please create a new issue following the template.
Most helpful comment
Please follow the question template. Also it looks like it's more of a Zeep issue?