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 2022/10/22 07:50:54 UTC

[GitHub] [airflow] emincanoguz11 commented on a diff in pull request #27174: BugFix - Druid Airflow Exception to about content

emincanoguz11 commented on code in PR #27174:
URL: https://github.com/apache/airflow/pull/27174#discussion_r1002399648


##########
airflow/providers/apache/druid/hooks/druid.py:
##########
@@ -89,7 +89,8 @@ def submit_indexing_job(self, json_index_spec: dict[str, Any] | str) -> None:
         self.log.info("Druid ingestion spec: %s", json_index_spec)
         req_index = requests.post(url, data=json_index_spec, headers=self.header, auth=self.get_auth())
         if req_index.status_code != 200:
-            raise AirflowException(f'Did not get 200 when submitting the Druid job to {url}')
+            raise AirflowException(f'The error code of {url}: {req_index.content}')

Review Comment:
   Hi Nikolas,
   
   Good advice. I changed that. 



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