Baptiste Ottino
05/13/2024, 12:46 PMMarvin
05/13/2024, 12:47 PM<https://hooks.slack.com/services/>...
. For OAuth, make sure you have the correct Bot User OAuth Token starting with xoxb-...
, and the scope must include chat:write
.
2. Permissions & Scopes: If using OAuth, confirm that you've granted the proper permissions in Slack, namely chat:write
, and after updating scope, that you have reinstalled the app to your workspace.
3. Verify Block Configuration: Ensure that the SlackWebhook block is properly configured in your Automations. The automation should be set up to trigger on flow failure and reference the SlackWebhook block you've saved.
Please refer to the Prefect Slack integration documentation for setting up and configuring Slack credentials and ensure you've followed all the steps carefully.
If you've checked these settings and the issue persists, it might be necessary to look at the logs from Prefect for errors during the Automations trigger, and investigate if there are any messages related to Slack notifications that might guide you to the root cause.Baptiste Ottino
05/13/2024, 12:47 PMBaptiste Ottino
05/13/2024, 12:49 PMSlackWebhook.load(my_prefect_block).notify(message)
but then if I configure an automation from the UI to notify using the same block when a flow run fails, then it doesn't workNate
05/13/2024, 3:00 PMBaptiste Ottino
06/14/2024, 3:39 PMSlackWebhook
. You need to use the one in the core prefect library: https://linen.prefect.io/t/12111764/hi-guys-i-m-running-into-this-error-while-using-prefect-clou