[BUG] Unable to use MS Teams Workflow webhook url in Channels #942
Description
What is the bug?
Microsoft is deprecating the Office 365 connectors for Teams and we need to utilize the Workflows webhook URL to post messages to Teams channels. I've generated a webhook URL but am unable to use it in OpenSearch.
How can one reproduce the bug?
Method 1:
Go to 'Notifications -> Channels -> Create Channel'
Set a channel name
Select Channel Type -> Microsoft Teams
Webhook URL -> https://prod-XX.westeurope.logic.azure.com:443/workflows/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Click "Send Test Message"
Error:
[status_exception] Wrong Microsoft Teams url. Should contain "webhook.office.com"
Method 2:
Select Channel Type -> Custom webhook
Method -> POST
Webhook URL -> https://prod-XX.westeurope.logic.azure.com:443/workflows/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Click "Send Test Message"
Error:
[status_exception] {"event_status_list": [{"config_id":"666cK5EB6cKDPdC7sDsE","config_type":"webhook","config_name":"temp-MS Teams Workflow Test","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Failed: {\"error\":{\"code\":\"InvalidRequestContent\",\"message\":\"The request content is not valid and could not be deserialized: 'Unexpected character encountered while parsing value: T. Path '', line 0, position 0.'.\"}}"}}]}
What is your host/environment?
AWS OpenSearch 2.11