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/06 10:25:04 UTC

[GitHub] [airflow] ephraimbuddy opened a new issue #12131: Return Json for all `Not Found` views in REST API

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


   Currently if an API URL that does not exist is requested, an html page is returned instead of JSON
   
   **Apache Airflow version**:2.0
   
   **What happened**:
   Making a request against an endpoint that does not exist returns an html page
   
   **What you expected to happen**:
   
   I expected it to return 404 error in JSON indicating that the URL was not found
   
   **How to reproduce it**:
   1. Start airflow website and scheduler in breeze.
   2. Make a request against an endpoint that does not exist e.g http://localhost:28080/api/v1/getconnectiond
   3. Notice that an html page is returned instead of a json
   cc: @mik-laj 
   


----------------------------------------------------------------
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 #12131: Return Json for all `Not Found` views in REST API

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


   


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