Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
7d8ff40
1
Parent(s): 3923b92
Claude Code: Test Eve's hypothesis - disable error_handlers to break dependency chain
Browse files- Commented out error_handlers import and registration
- Commented out RequestLoggingMiddleware
- Added print("APP_READY") immediately after FastAPI instantiation
- This will verify if error_handlers or middleware is causing startup hang
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -763,12 +763,17 @@ app = FastAPI(
|
|
| 763 |
lifespan=lifespan
|
| 764 |
)
|
| 765 |
|
| 766 |
-
#
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
#
|
| 771 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 772 |
|
| 773 |
# Mount static files for frontend assets (images, fonts, etc.)
|
| 774 |
app.mount("/static", StaticFiles(directory=str(FRONTEND_PATH)), name="static")
|
|
|
|
| 763 |
lifespan=lifespan
|
| 764 |
)
|
| 765 |
|
| 766 |
+
# DEBUG: Print APP_READY immediately to verify core app instantiation
|
| 767 |
+
print("APP_READY")
|
| 768 |
+
sys.stdout.flush()
|
| 769 |
+
|
| 770 |
+
# TEMPORARILY DISABLED: Testing Eve's hypothesis - comment out error_handlers to break potential dependency chain
|
| 771 |
+
# # Register exception handlers (import here to avoid circular dependency)
|
| 772 |
+
# from error_handlers import register_error_handlers
|
| 773 |
+
# register_error_handlers(app)
|
| 774 |
+
#
|
| 775 |
+
# # Add request logging middleware
|
| 776 |
+
# app.add_middleware(RequestLoggingMiddleware)
|
| 777 |
|
| 778 |
# Mount static files for frontend assets (images, fonts, etc.)
|
| 779 |
app.mount("/static", StaticFiles(directory=str(FRONTEND_PATH)), name="static")
|