ephraimbuddy opened a new issue #12616:
URL: https://github.com/apache/airflow/issues/12616


   Triggering a dagrun with an invalid execution date causes a ParserError in 
the REST API
   
   **Apache Airflow version**: 2.0
   
   **What happened**:
   When you trigger a dagrun with an invalid execution date, it returns an HTML 
response showing the error
   
   **What you expected to happen**:
   
   I expected a JSON response showing that the execution date is invalid
   
   **How to reproduce it**:
   
   1. Start airflow webserver and scheduler
   2. Make a post request to this endpoint 
`http://localhost:28080/api/v1/dags/example_bash_operator/dagRuns` with this 
request body `{"execution_date": "mydate"}`
   3. This will return an HTML page instead of JSON
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to