sentry icon indicating copy to clipboard operation
sentry copied to clipboard

User Feedback- Changing Slack Channels on alert rules is broken

Open sentry[bot] opened this issue 2 years ago • 7 comments

Sentry Feedback: JAVASCRIPT-2S1V

Hi, we seem to have discovered a bug in the Sentry GUI that caused quite an upset today. When in the Alerts, the Slack channel is changed, the update is accepted, but from that moment on no message is sent anywhere. Only deleting the rule and creating a new one seems to work. We updated a few rules lately, and we missed many warnings. Further, we found ourselves suddenly way above our quota, and this is due, we think

Btw: your Help > Contact Support is also not working..

sentry[bot] avatar Mar 12 '24 14:03 sentry[bot]

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

getsantry[bot] avatar Mar 12 '24 14:03 getsantry[bot]

Not sure if this is related, but I have noticed that when I edit an alert that has a routing rule to a Slack user, and then save (without changing any of the routing rules), I get the error "Unable to save alert: Channel not found. Invalid ID provided"

arifken avatar Aug 03 '24 18:08 arifken

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

getsantry[bot] avatar Aug 06 '24 16:08 getsantry[bot]

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

getsantry[bot] avatar Aug 07 '24 21:08 getsantry[bot]

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

getsantry[bot] avatar Aug 07 '24 21:08 getsantry[bot]

Is this happening for issue alerts, metric alerts, or both? Has the alert fired since the Slack channel was changed? If it's a metric alert you'll see the fire history on the rule details page, for issue alerts it'll show "last triggered".

ceorourke avatar Aug 08 '24 18:08 ceorourke

For me, it was when I configured an "users experiencing errors" alert, and in the edit screen both the "@username or channel" box and the "optional: channel ID or username" boxes were filled out already.

I just went to go repro this issue and this time the "optional: channel ID or username" box was not populated when the "edit alert" page loaded. In these cases, I am able to save without the error

arifken avatar Aug 10 '24 02:08 arifken

Not sure if this is related, but I have noticed that when I edit an alert that has a routing rule to a Slack user, and then save (without changing any of the routing rules), I get the error "Unable to save alert: Channel not found. Invalid ID provided"

Image Image @arifken You need to add sentry to the Integrations page of the slack's channel in Add Apps, then you can send sentry notifications to the slack

EthanSivan avatar Sep 14 '24 02:09 EthanSivan

The issues on this ticket seems like from 2 different resources which makes debugging difficult. @arifken if you're still experiencing an issue after double checking the setup steps, please create a new github with details so we can follow-up better.

sentaur-athena avatar Sep 16 '24 20:09 sentaur-athena

I dug deeper into this today and updating the alert is not broken. To repro I:

  1. Created an alert and sent to to channel1
  2. Verified that new issues notify me in channel1
  3. Updated the alert to send to channel2
  4. Received the issues in channel2.

I did realize that while updating the alert there's a UI problem that channel ID doesn't change when I change channel name. That causes an error. We have an open ticket already for that issue so I close this one.

sentaur-athena avatar Apr 28 '25 23:04 sentaur-athena