You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "maahir22 (via GitHub)" <gi...@apache.org> on 2023/04/01 18:21:51 UTC
[GitHub] [airflow] maahir22 commented on a diff in pull request #30346: Fix POST /taskInstances/list with wildcards returns unhelpful error
maahir22 commented on code in PR #30346:
URL: https://github.com/apache/airflow/pull/30346#discussion_r1155152379
##########
airflow/api_connexion/endpoints/request_dict.py:
##########
@@ -18,9 +18,14 @@
from typing import Any, Mapping, cast
+from airflow.api_connexion.exceptions import BadRequest
+
def get_json_request_dict() -> Mapping[str, Any]:
"""Cast request dictionary to JSON."""
from flask import request
+ if not request.data:
+ raise BadRequest(detail="POST Body must not be None")
Review Comment:
Seems like the job is still failing, however I can't figure out where - do you see something wrong @uranusjr ?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org