Hi! Is there any way to test an automation with slack? I configured an automation so every flow that changes its state to failed send a notification to slack, but it’s not working. Should I use https:// or just the following part of the webhook?
Thank you in advance!
z
Zach Schumacher
06/16/2021, 5:40 PM
are you using the built in slack notifier? did you write your own? are you getting an error or is it just doing nothing?
Thank you for your responses! I am not using any task directly. I was about to configure a cloud hook, but then I read that Automations are the evolution so I tried them. The automation is like:
When any run from any flow changes to failed then slack_webhook
where my secret is slack_webhook (its similar to yours @Kevin Kho).
I discovered than in the notifications dashboard something is going wrong:
Copy code
The SlackNotificationAction (741a20f1-e682-4c4d-86bf-79cef1aff839) has failed with 'AttributeError: 'dict' object has no attribute '_uri_reference'' during execution triggered by FlowRunStateChangedEvent event from hook d2b303de-9d57-4716-a46c-6b4c5bd480b0
k
Kevin Kho
06/16/2021, 7:07 PM
Ok will ask the team about this.
j
jcozar
06/16/2021, 7:12 PM
Thank you!
z
Zanie
06/16/2021, 7:52 PM
Hey @jcozar -- it looks like you've set the secret to a dict (JSON blob) instead of a string (which is what we require)
j
jcozar
06/17/2021, 6:52 PM
You are right! I don’t know why it detected automatically the json format instead of string (maybe I missclick dict instead of string). Thank you!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.