SlackWebhookHook Broken

Joaquín Menchaca (智裕)
1 min readJul 9, 2019

Currently SlackWebhookHook is not working in apache-airflow 1.10.3. The http_conn_id doesn’t look like it is passed to to super class HTTPHook. This then sets the http_conn_id=http_default, which causes self.base_url = None. In master, it looks like this was fixed 2–3 months ago, but it has not been released.

I think you can copy out the contrib/slack_webhook_hook.py to your plugins directory and use it from there, or wait until new version, or roll back to earlier version to when it was working. Alternatively, just use the HTTPHook instead.

--

--

Joaquín Menchaca (智裕)
Joaquín Menchaca (智裕)

Written by Joaquín Menchaca (智裕)

DevOps/SRE/PlatformEng — k8s, o11y, vault, terraform, ansible

No responses yet