You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which does not allow to insert MSTeams webhook urls and raise an pydantic validation error
pydantic_core._pydantic_core.ValidationError: 1 validation error for MicrosoftTeamsWebhook
Value error, Invalid Microsoft Teams Workflow URL provided. [type=value_error, input_value={'url': 'https://team-name.we...ge': True, 'wrap': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/value_error
Looks like the wrong apprise plugin apprise.plugins.workflows import NotifyWorkflows is used instead of from apprise.plugins.msteams import NotifyMSTeams.
hi @deweil - i believe this was an intentional change because of impending changes from Microsoft's end. Is it possible you're using the old version of things?
Hi @zzstoatzz after checking the linked issue I can switch to the workflow based approach.
It wasn't clear to me that the "Incoming Webhook" does not work with the Teams block.
Bug summary
Bug summary
There is an bug in
prefect/src/prefect/blocks/notifications.py
Line 187 in e047607
which does not allow to insert MSTeams webhook urls and raise an pydantic validation error
Looks like the wrong apprise plugin
apprise.plugins.workflows import NotifyWorkflows
is used instead offrom apprise.plugins.msteams import NotifyMSTeams
.Also
prefect/src/prefect/blocks/notifications.py
Line 194 in e047607
needs to be
parse_url
instead ofparse_native_url
Working example
Version info
Additional context
No response
The text was updated successfully, but these errors were encountered: