[
https://issues.apache.org/jira/browse/AIRFLOW-6385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17007677#comment-17007677
]
ASF GitHub Bot commented on AIRFLOW-6385:
-----------------------------------------
kaxil commented on pull request #7022: [AIRFLOW-6385] BugFix:
SlackAPIPostOperator fails when blocks not set
URL: https://github.com/apache/airflow/pull/7022
----------------------------------------------------------------
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:
[email protected]
> SlackAPIPostOperator fails when blocks not set
> ----------------------------------------------
>
> Key: AIRFLOW-6385
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6385
> Project: Apache Airflow
> Issue Type: Bug
> Components: operators
> Affects Versions: 1.10.7
> Reporter: Dmytro Kulyk
> Assignee: Kaxil Naik
> Priority: Critical
> Labels: slack
> Fix For: 1.10.8
>
>
> After upgrade to 1.10.7 all slack notifications became faulty
> SlackAPIPostOperator fails when blocks not set
> {code}
> t_slack_ok = SlackAPIPostOperator(
> task_id = 'notify_ok',
> token = Variable.get('slack.token'),
> channel = Variable.get('slack.channel'),
> text = ':rocket: {{ dag.dag_id }} for {{ ds }} has succeeded',
> dag = dag)
> {code}
> Causing an operator error:
> {code}
> [2019-12-28 21:55:14,668] {taskinstance.py:1088} ERROR - Slack API call
> failed (invalid_blocks_format)
> Traceback (most recent call last):
> File
> "/usr/local/lib/python3.6/dist-packages/airflow/models/taskinstance.py", line
> 955, in _run_raw_task
> result = task_copy.execute(context=context)
> File
> "/usr/local/lib/python3.6/dist-packages/airflow/operators/slack_operator.py",
> line 85, in execute
> slack.call(self.method, self.api_params)
> File "/usr/local/lib/python3.6/dist-packages/airflow/hooks/slack_hook.py",
> line 62, in call
> raise AirflowException(msg)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)