You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/09 15:38:29 UTC

[GitHub] [airflow] ephraimbuddy opened a new issue #12201: (REST API)Triggering a dagrun with naive datetime raises an html page instead of json

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


   Triggering a dagrun with naive datetime raises an HTML page instead of JSON
   
   **Apache Airflow version**:2.0
   
   
   **What happened**:
   
   An HTML page was returned instead of json when the REST API was triggered with a naive datetime
   
   **What you expected to happen**:
   
   I expected it to raise error status 400 indicating that it's a bad request
   
   **How to reproduce it**:
   1. Start the web server and scheduler inside breeze.
   2. Make a post request to this endpoint: http://localhost:28080/api/v1/dags/example_bash_operator/dagRuns
    to trigger dagruns using this request body: {"execution_date": "2020-11-09T16:25:56.939143"}. or any naive datetime
   3. See that an HTML is raised 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:
users@infra.apache.org



[GitHub] [airflow] mik-laj closed issue #12201: (REST API)Triggering a dagrun with naive datetime raises an html page instead of json

Posted by GitBox <gi...@apache.org>.
mik-laj closed issue #12201:
URL: https://github.com/apache/airflow/issues/12201


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] ephraimbuddy commented on issue #12201: (REST API)Triggering a dagrun with naive datetime raises an html page instead of json

Posted by GitBox <gi...@apache.org>.
ephraimbuddy commented on issue #12201:
URL: https://github.com/apache/airflow/issues/12201#issuecomment-724108502


   Just found out naive date-times are not handled at all. So it's not only the triggering of dagruns. I will fix this later


----------------------------------------------------------------
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:
users@infra.apache.org