IanMitchell / sentrydiscord.dev

Forward Sentry notifications to your Discord server
https://sentrydiscord.dev
MIT License
209 stars 22 forks source link

Sentry alerts not working #24

Closed MatheusGalhani closed 2 years ago

MatheusGalhani commented 2 years ago

I added the webhook in the Sentry settings, but the messages are only triggered when I click "test plugin". When I simulate an error in my application, the problem appears in sentry, but it does not appear in my discord channel.

image

image

image

Please, can you help me?

thewilloftheshadow commented 2 years ago

Do you have this enabled

image

MatheusGalhani commented 2 years ago

@thewilloftheshadow My alert setup looks like this

image

MatheusGalhani commented 2 years ago

@thewilloftheshadow I already test this ownership, but don't work too

image

IanMitchell commented 2 years ago

Sorry, been a really long week - still planning on getting to these soon, hopefully Sunday

MatheusGalhani commented 2 years ago

@IanMitchell Okay, I'll wait. I'm trying to find what is incorrect.

IanMitchell commented 2 years ago

Hm, it does look like you've configured it correctly. Would you mind emailing me your webhook URL? I can turn on debug mode and see if I'm receiving events and just not posting them, or if I'm not getting them at all

MatheusGalhani commented 2 years ago

@IanMitchell Yes sure. Is your email ian.mitchell@hey.com?

IanMitchell commented 2 years ago

Yup!

IanMitchell commented 2 years ago

Got your email, think I figured out the issue and have pushed a change

MatheusGalhani commented 2 years ago

Hello @IanMitchell I didn't receive a reply to your email if you sent it. Can you send it to my discord? Galhani#7500

IanMitchell commented 2 years ago

Ah, weird. Mostly just said it was an issue with the webhook payload putting a ton of information into a weird field - I added a length cap that should fix the issue. You should see error reports coming through now!

MatheusGalhani commented 2 years ago

@IanMitchell I force a error, but don't recieve in my discord 😢

I only recive a new message when I test webhook

MatheusGalhani commented 2 years ago

@IanMitchell Are there any tweaks I might be trying to make to the sentry?

keqking commented 2 years ago

I think I also have this exact issue. When I saw my sentry dashboard with new issues but didn't receive them in Discord channel, so I setup one more webhook for my another discord server's channel with this service and added in sentry integrations but that also never fires when new issue comes up on sentry dashboard.

IanMitchell commented 2 years ago

I'm not sure what's happening honestly - I'm not seeing webhook failure alerts get posted, and as far as I can tell y'all have the alert configured correctly. Been a little swamped this month with work and weddings, but I'm trying to dig in when I can. Just to make sure, the errors that aren't getting posted are all new errors right? I think repeat events don't generally send

keqking commented 2 years ago

yeah majority are new errors and not regressions for my case.

IanMitchell commented 2 years ago

Gotcha. Are you able to capture a sample error payload I can test? You can post it here or email it to me, whichever you prefer! I can run it manually locally and try and figure out what's going wrong

keqking commented 2 years ago

Uh mmmm, I am not sure what do you mean by "capture" part? like I don't see any export button on sentry issue entry to send dump here. A bit confused sorry. Just for side note, for my own verification I configured same discord webhook with popular pipedream service and it relays all new issues for my sentry project just fine to my discord channel. If I have your permission, can I DM you on Discord the webhook details I used with this service?

MatheusGalhani commented 2 years ago

@IanMitchell Yes, I am forcing new errors and also old errors to test.

IanMitchell commented 2 years ago

Uh mmmm, I am not sure what do you mean by "capture" part? like I don't see any export button on sentry issue entry to send dump here. A bit confused sorry. Just for side note, for my own verification I configured same discord webhook with popular pipedream service and it relays all new issues for my sentry project just fine to my discord channel. If I have your permission, can I DM you on Discord the webhook details I used with this service?

I usually capture events by spinning up a local server and saving the JSON as a file - then adding the local server as another webhook callback on Sentry. I don't store any of the JSON in the prod service which makes debugging these issues pretty painful unfortunately.

I'm still not seeing any dropped events, but trying to keep an eye out

MatheusGalhani commented 2 years ago

@IanMitchell I was able to use the webhook as follows

image

image

The message arrives, but the stack trace does not come. However, it already works for me.

image

IanMitchell commented 2 years ago

Would you both join my Discord server and see if we can debug this together in real time? I think that might help - I'm still stumped on this one, and don't want to leave either of you hanging. https://discord.gg/ian

MatheusGalhani commented 2 years ago

@IanMitchell can i close the issue?

IanMitchell commented 2 years ago

Sure thing!