Description
backend/app.py starts uvicorn with debug=True:
uvicorn.run(app, host="0.0.0.0", port=5001, debug=True)
Uvicorn does not accept a debug parameter. This raises a TypeError when starting the server with python app.py directly.
Impact
The server cannot be started via python app.py. Only works if launched externally (e.g. via uvicorn app:app CLI), which is undocumented in the README.
Location
backend/app.py — the __main__ block at the bottom of the file.
Fix Applied (commit 2936cb5)
Replaced debug=True with reload=True (auto-reload on code changes) and log_level="debug" (verbose logging). Also changed the first argument from the app object to the "app:app" string, which is required for reload=True to work.
Description
backend/app.pystarts uvicorn withdebug=True:Uvicorn does not accept a
debugparameter. This raises aTypeErrorwhen starting the server withpython app.pydirectly.Impact
The server cannot be started via
python app.py. Only works if launched externally (e.g. viauvicorn app:appCLI), which is undocumented in the README.Location
backend/app.py— the__main__block at the bottom of the file.Fix Applied (commit 2936cb5)
Replaced
debug=Truewithreload=True(auto-reload on code changes) andlog_level="debug"(verbose logging). Also changed the first argument from theappobject to the"app:app"string, which is required forreload=Trueto work.