79551006

Date: 2025-04-02 15:52:06
Score: 3
Natty:
Report link

Turns out the problem was simply that my python script was not named main, and there was another python app main.py on the same working directory.

For anyone else who may face similar issues in the future:

Please note that the name of your python script should match the uvicorn.run("<filename>:app", ...) part.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face similar issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ananda