Incoming Webhook
2 TopicsPosting adaptivecard to teams incoming webhooks
I have encountered a strange issue that I cannot get past. It has to do with MS Teams incoming webhooks and AdaptiveCards. The issue is that webhooks on some (not all) channels have stopped working. They worked initially for a good month or so before some stopped working. I have been able to verify that when a webhook stops working for a given channel that I cannot create a new webhook for the channel that will work, at least not for the payload that is required. The AdaptiveCard payloads always include "actions". However, while troubleshooting I noticed that if I remove the actions section from the AdaptiveCard that the webhook will accept the POST. Has anyone encountered anything like this? Below are a couple sample payloads that I can use to demonstrate this issue in our teams server. The first one includes the `actions` section and will always fail on a channel that has become corrupted. The second one is the same payload as the first, but it omits the problematic `actions` section. NOTE: both payloads can be successfully posted to an incoming webhook on a channel that is not corrupted. NOTE, I am suggesting the channel is corrupted because that is the best way to describe the symptoms I am experiencing. 1. payload with `actions`: { "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "contentUrl": null, "content": { "type": "AdaptiveCard", "schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.6", "body": [ { "text": "🚀 testing", "wrap": true, "size": "Large", "weight": "Bolder", "color": "Good", "type": "TextBlock" }, { "facts": [ { "title": "DeploymentId: ", "value": "dep-id-123" } ], "type": "FactSet" }, { "actions": [ { "title": "GitHub Org", "url": "https://github.com/myriadgenetics", "type": "Action.OpenUrl" } ], "separator": true, "spacing": "Default", "height": "Automatic", "holizontalAlignment": "Left", "type": "ActionSet" } ] } } ] } 2. payload w/o `actions`:5.8KViews0likes7CommentsIncoming Webhook duplicated message
Hello! We're using Teams Incoming Webhook to send notifications to a channel when a ticket is opened in our workflow management tool and we're facing a strange behavior when posting to the webhook through Java's HttpClient (java.net.http). Every time we send a notification, it arrives "duplicated". The first one arrives as expected and the card is filled with all the data needed. The second one arrives approximately one minute after the first one and there's almost no data in this second card. In our implementation we have a serverless function (AWS Lambda) that handles the step of ticket opening process. After opening the ticket successfully, the notification is sent to Teams via the webhook. According to our logs, the HTTP request that sends the notification is made only once, as expected. So, we're initially considering that there's nothing wrong with the HttpClient. Note: when we post to the webhook using Postman or curl, everything works fine and the notification arrives with no duplication. So, I ask: is there any way to debug the webhook? Thanks!700Views0likes1Comment