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>

Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -763,12 +763,17 @@ app = FastAPI(
763
  lifespan=lifespan
764
  )
765
 
766
- # Register exception handlers (import here to avoid circular dependency)
767
- from error_handlers import register_error_handlers
768
- register_error_handlers(app)
769
-
770
- # Add request logging middleware
771
- app.add_middleware(RequestLoggingMiddleware)
 
 
 
 
 
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")