>>540
For Windows I started a terminal in my stable diffusion folder and ran

.\venv\Scripts\python.exe -m pip install --upgrade fastapi==0.90.1

That solved my problem

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7714