From b9d629f397abc7de3c6c2a3826bbf13a7bc5c998 Mon Sep 17 00:00:00 2001 From: Aniket Date: Sun, 28 Dec 2025 14:02:31 +0530 Subject: [PATCH] Corrected backend server command in README:Fix: resolve FastAPI backend startup issue caused by ASGI import error Description This change fixes a backend startup issue where Uvicorn failed to load the FastAPI ASGI application due to an incorrect or inaccessible module import. Before Running uvicorn main:app --reload resulted in: ERROR: Error loading ASGI app. Could not import module "main". Backend server failed to start. Local development was blocked due to the startup error. After The FastAPI entry point is correctly defined and importable. Uvicorn starts successfully with hot reload enabled. Backend is accessible at http://127.0.0.1:8000. Reason Uvicorn requires a valid module path and an exposed app instance. This fix ensures proper ASGI app discovery and prevents startup-time import errors. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 07d283d..8e1c9d2 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ npm run dev 2. Start the backend server (from the backend/app directory): ```sh -uvicorn main:app --reload +uvicorn app.main:app --reload ``` ## Data Population