question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft Teams webhook fails after certificate creation (reason: empty payload)

See original GitHub issue

Describe the bug Microsoft Teams webhook fails after certificate creation with error:

Failed invoke webhook. Status Code = BadRequest, Reason = Invalid webhook request - Empty Payload

To Reproduce Steps to reproduce the behavior:

  1. Follow setup instructions and configure a Microsoft Teams webhook.
  2. Create a new certificate.
  3. Search the application insights for “webhook”.
  4. See webhook error that occurred after certificate creation.

Environment (please complete the following information):

  • Certificate Type: Zone Apex and www
  • Certificate Deploy Target: Front Door

Additional context I noticed that Teams recently changed the format of their webhook URL. It now has the format: https://xxx.webhook.office.com/webhookb2/xxx/IncomingWebhook/xxx/xxx. Previously it was: https://outlook.office.com/webhook/xxx/IncomingWebhook/xxx/xxx. I checked the source code for this project which seems to be looking for .office.com, so I don’t believe the URL format change would negatively impact webhook execution.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shibayancommented, Aug 13, 2021

This issue has been fixed in v3.6.6. Thank you!

0reactions
shibayancommented, Aug 13, 2021

Thank you. I was able to identify the cause.

It seems that Incoming Webhook in Teams does not handle requests with Transfer-Encoding correctly. I’m working on a fix to avoid this problem now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub PAyload doesn't work for msTeams
One common cause of this issue is that the payload being sent by GitHub is not in a format that Teams can understand....
Read more >
Webhook - bad payload - Microsoft Q&A
I just don't get to sending a webhook message. I tried to set a variable and put to data field and send but...
Read more >
Bad payload received by generic incoming webhook
Hello, We use the MessageCard Reference (https://learn.microsoft.com/en-us/outlook/actionable-messages/message-card-reference) to send ...
Read more >
Microsoft Teams Integration - Security Certificate Problems
Like a certificate, each Webhook has an expiration date at which time it can no longer be used. This expiration date can be...
Read more >
Configuring Incoming webhook - error - something went ...
Hi, We are trying to configure an Incoming webhook connector in Teams, but get the following error message: Something went wrong.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found