Open nurlybek-dev opened 4 weeks ago
@nurlybek-dev Hi!
I believe you are correct. When the service layer return an exception, then the controller does not know that an error was raised and it breaking the exceptions chain. I will work on pr that fix it.
Hello, Problem, when exception raised in service with async_db_request_handler decorator, it return HTTPException, which FastAPI can't serialize and raised another exception
code example: Controller
Service
Maybe it should be raise HTTPException instead of return HTTPException? code line nest/core/decorators/database.py:82.