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/12 19:59:51 UTC

[GitHub] [airflow] ephraimbuddy opened a new issue #12325: Response status 405 not handled in the stable REST API

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


   Calling any endpoint in REST API with a method that's not allowed returns an HTML page instead of JSON
   
   ```
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
   <title>405 Method Not Allowed</title>
   <h1>Method Not Allowed</h1>
   <p>The method is not allowed for the requested URL.</p>
   ```
   **What you expected to happen**:
   I expected a JSON response indicating that the method is not allowed
   
   **How to reproduce it**:
   1. Start airflow webserver in breeze
   2. make a put request to  `http://localhost:28080/api/v1/variables` 
   3. Notice that this is returned :
   
   ```
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
   <title>405 Method Not Allowed</title>
   <h1>Method Not Allowed</h1>
   <p>The method is not allowed for the requested URL.</p>
   ```


----------------------------------------------------------------
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] Zedmor commented on issue #12325: Response status 405 not handled in the stable REST API

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


   Addressed in https://github.com/apache/airflow/pull/12305


----------------------------------------------------------------
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 closed issue #12325: Response status 405 not handled in the stable REST API

Posted by GitBox <gi...@apache.org>.
ephraimbuddy closed issue #12325:
URL: https://github.com/apache/airflow/issues/12325


   


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