Search code examples
pythonpython-3.xfastapiopenapi

fastapi : "GET /docs HTTP/1.1" 404 Not Found


I recently updated fast api from v0.89.1 to v0.110.0 and I am getting the following error.

"GET /docs HTTP/1.1" 404 Not Found

There is no other error to help me debug the issue.

INFO:     Uvicorn running on http://0.0.0.0:portNumber (Press CTRL+C to quit)
INFO:     Started reloader process [xxxxx] using StatReload
INFO:     Started server process [xxxxx]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     - "GET / HTTP/1.1" 404 Not Found
INFO:     - "GET /docs HTTP/1.1" 404 Not Found

Everything was working fine before the upgrade.


Solution

  • removing root_path="/" fixed the issue