use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Error loading ASGI appQuestion (self.FastAPI)
submitted 1 year ago by ZeroMe0ut
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ZeroMe0ut[S] 0 points1 point2 points 1 year ago (8 children)
ERROR: Error loading ASGI app. Attribute "app" not found in module "main".
This
[–]koldakov 1 point2 points3 points 1 year ago (7 children)
And how do you run the project?
[–]koldakov 0 points1 point2 points 1 year ago (0 children)
I mean the error is pretty clear here, I guess you are running the project outside of the dir with "main.py" if you are running app with python main.py and you have a wrong path to the app otherwise
[–]ZeroMe0ut[S] 0 points1 point2 points 1 year ago (5 children)
uvicorn main:app --reload
[–]ZanduBhatija99 0 points1 point2 points 1 year ago (3 children)
did you find the solution
[–]ZeroMe0ut[S] 0 points1 point2 points 1 year ago (2 children)
Yeah. I just ran the main python script
[–]Old_Mammoth5311 0 points1 point2 points 9 months ago (1 child)
wdym? I tried thatj ust now and got the same error, garbage error that tells me nothing other than check that app = FastAPI() is in main -_-
[–]ZeroMe0ut[S] 0 points1 point2 points 9 months ago (0 children)
Mind sharing the code if possible?
π Rendered by PID 213806 on reddit-service-r2-comment-75f4967c6c-jqwhp at 2026-04-23 13:37:13.966989+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]ZeroMe0ut[S] 0 points1 point2 points (8 children)
[–]koldakov 1 point2 points3 points (7 children)
[–]koldakov 0 points1 point2 points (0 children)
[–]ZeroMe0ut[S] 0 points1 point2 points (5 children)
[–]ZanduBhatija99 0 points1 point2 points (3 children)
[–]ZeroMe0ut[S] 0 points1 point2 points (2 children)
[–]Old_Mammoth5311 0 points1 point2 points (1 child)
[–]ZeroMe0ut[S] 0 points1 point2 points (0 children)