FastAPI - Middleware and Hooks
This middleware code causes an error:
What is the error?
class ErrorMiddleware(BaseHTTPMiddleware):
def dispatch(self, request, call_next):
print("Start")
response = await call_next(request)
print("End")
return response
app.add_middleware(ErrorMiddleware)What is the error?
