mykola-shyshov commented on code in PR #58209:
URL: https://github.com/apache/airflow/pull/58209#discussion_r2530075864
##########
airflow-core/src/airflow/api_fastapi/execution_api/app.py:
##########
@@ -218,7 +218,7 @@ def custom_generate_unique_id(route: APIRoute):
@app.exception_handler(Exception)
def handle_exceptions(request: Request, exc: Exception):
logger.exception("Handle died with an error", exc_info=(type(exc),
exc, exc.__traceback__))
- content = {"message": "Internal server error"}
+ content = {"message": "Internal server error", "details": str(exc) or
""}
Review Comment:
Thanks for feedback. I thought that it may have security concerns but in the
issue I got no response so proposed PR. I will consider to add UUID and to make
more meaningful error message.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]