Cross-posting from prefect-community because I rea...
# prefect-cloud
m
Cross-posting from prefect-community because I realized "Automations" are a cloud-only feature: I'm trying to use the "Discord Webhook" built-in block as an action to an Automation when a Flow Run enters a Failed or crashed state, but I'm getting the following error message in the Event Feed:
Copy code
{
  "id": "<redacted>",
  "account": "<redacted>",
  "event": "prefect-cloud.automation.action.failed",
  "occurred": "2024-08-20T18:13:52.320Z",
  "payload": {
    "action_index": 0,
    "action_type": "send-notification",
    "invocation": "<redacted>",
    "reason": "The notification block was invalid: KeyError(\"No class found for dispatch key 'discord-webhook' in registry for type 'Block'.\")"
  },
  "received": "2024-08-20T18:13:52.321Z",
  "related": [],
  "resource": {
    "prefect.resource.id": "prefect-cloud.automation.bda3773c-89f0-4693-b501-c4983b32997b",
    "prefect.resource.name": "Notify about failed or crashed runs",
    "prefect-cloud.trigger-type": "event",
    "prefect-cloud.posture": "Reactive"
  },
  "workspace": "<redacted>"
}