Marco Ruta
03/18/2025, 2:06 PM13:44:29.389 | WARNING | prefect.server.events.actions - Action failed: "The notification block was invalid: 1 validation error for CustomWebhookNotificationBlock\nparams\n Input should be a valid dictionary [type=dict_type, input_value='', input_type=str]\n For further information visit <https://errors.pydantic.dev/2.10/v/dict_type>"
using this the default values as automation body:
Flow run {{ flow.name }}/{{ flow_run.name }} observed in state {{ flow_run.state.name }} at {{ flow_run.state.timestamp }}.
Flow ID: {{ flow_run.flow_id }}
Flow run ID: {{ flow_run.id }}
Flow run URL: {{ flow_run|ui_url }}
State message: {{ flow_run.state.message }}
In the second case, If I try to set in the webhook JSON body something like:
{
"flow_run_id": {{ flow_run.flow_id }}
}
when saving the block from the GUI this modification is not applied (it only happens for the JSON part, not for all the other params. If I do it in other fields i.e. Form params I get that this templating is not allowed.
I'm sure I'm missing something, thanks to everyone that will provide a clarification 🙂Chinh Dinh Minh
03/18/2025, 5:27 PMMarco Ruta
03/19/2025, 7:48 AM