ephraimbuddy commented on PR #30346:
URL: https://github.com/apache/airflow/pull/30346#issuecomment-1504226804

   I prefer this hack:
   ```diff
   diff --git a/airflow/api_connexion/exceptions.py 
b/airflow/api_connexion/exceptions.py
   index 11468e1506..8789ef8f39 100644
   --- a/airflow/api_connexion/exceptions.py
   +++ b/airflow/api_connexion/exceptions.py
   @@ -41,7 +41,8 @@ EXCEPTIONS_LINK_MAP = {
    def common_error_handler(exception: BaseException) -> flask.Response:
        """Used to capture connexion exceptions and add link to the type 
field."""
        if isinstance(exception, ProblemException):
   -
   +        if exception.detail == "None is not of type 'object'":
   +            exception.detail = "POST Body must not be empty"
            link = EXCEPTIONS_LINK_MAP.get(exception.status)
            if link:
                response = problem(
   ```


-- 
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]

Reply via email to