Open kingcwt opened 1 month ago
Any updates on this @kingcwt? facing the same issue!
Could be related to: https://github.com/encode/uvicorn/issues/2000
I currently have a slightly different issue from yours @kingcwt but it's still an issue with fastapi cli (dev and run)
The Code
The Error
do not use the fastapi dev to run your application just use uvicorn instead, i do not face any issue with uvicorn
I tryied to reproduce it, but without success.
But sometimes I get the same problem running uvicorn with --reload in cmder/windows. I think it is related to uvicorn instead of fastapi
Privileged issue
Issue Content
The first time I ran fastapi dev, there was no problem, but I encountered a code error. Then after I modified the code and saved it, a WARNING: WatchFiles detected changes in 'tool/index.py'. Reloading... then got stuck and could not exit.