This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
got Future <Future pending> attached to a different loop #3854
Labels
You can continue the conversation there. Go to discussion →
First Check
Commit to Help
Example Code
Description
i was using discord client with fastapi i used another thread for running uvicorn.
the bot worked fine but when i used the fastapi endpoints it gave me an error
the endpoint that gave me this error was asynchronous using mongodb module motor, other non asynchronous endpoints worked fine like the /docs.
when i removed the discord client with just the fastapi it still didnt worked with uvicorn.run() but did worked with the cmd command uvicorn main:app not sure why tho.
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.66.0
Python Version
3.9.4
Additional Context
No response
The text was updated successfully, but these errors were encountered: