getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.39k stars 4.22k forks source link

MS Teams Webhook: There was an internal error with the Plugin, Summary or Text is required #57021

Open nfeltrin-dkb opened 1 year ago

nfeltrin-dkb commented 1 year ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Create a Webhook in an MS Teams channel
  2. Configure an project to send alerts through it (legacy Webhooks plugin)
  3. Send a test notification (or even a real one, most likely)

Expected Result

Actual Result

This has already been reported in https://github.com/getsentry/sentry/issues/55752 and I understand that new integration is considered the way forward. Unfortunately this requires more permissions in MSTeams that my organization is comfortable granting at the moment, so having the fallback to "simple" webhooks would be great.

Could you consider re-evaluating your decision and investigate how to get webhooks notifications to work with MSTeams?

Product Area

Alerts

Link

No response

DSN

No response

Version

No response

getsantry[bot] commented 1 year ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 1 year ago

Routing to @getsentry/product-owners-settings-integrations for triage ⏲️

Dhrumil-Sentry commented 1 year ago

@nfeltrin-dkb Have you looked at creating an internal integration?

You can setup a webhook here and send alerts to that webhook, you would not need to use the MS Teams integrations either

nfeltrin-dkb commented 1 year ago

@Dhrumil-Sentry thanks for your reply. I have not tried that, because setting up internal integrations require org-wide permissions (which I do not have). I will definitely pass it forward to someone who does, and report here how it goes.

On the other hand, I think it would be generally desirable to provide a way for Team Admins to be able to configure notification methods for their teams without requiring the Owner role :)

nfeltrin-dkb commented 1 year ago

@Dhrumil-Sentry I've got some more permissions and making some attempts at configuring an internal integration for MS Teams.

Do I understand correctly that the webhook payload would follow the issue alert or metrics alert schema, and therefore needs to be sent to a third-party/self-hosted/in-house-built service to convert that to an MS Teams payload? Or is there some way to convert the payload directly from Sentry itself? Are there any tested examples available that you know of?

Many thanks for your support, Nicola

Dhrumil-Sentry commented 1 year ago

the webhook payload would follow the issue alert or metrics alert schema, and therefore needs to be sent to a third-party/self-hosted/in-house-built service to convert that to an MS Teams payload?

Your understanding is correct here. We don't have documented examples for this but several customers host their own webhooks server to listen to these webhooks and route them according to their custom needs