New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webhooks do not work #22782
Comments
@zs-dima can you send a ticket to support@sentry.io referencing this so we can take a look at your specifics? I tested this out and can't reproduce the issue, but being able to look at your setup for the Flutter project would help. |
My case is resolved. Didn't notice there is Alright, similar problem on self-hosted. But non of the alerts work when there are multiple organizations How I got to that state:
Went back to initial organization. Set up exactly the same alerting in new project in there and it works perfectly Sentry version: Sentry 21.1.0.dev 06a4de6d Edit: Aha. maybe it's more of an issue to getsentry/onpremise ? |
@McSneaky great - can this be closed then? Are you also zs-dima? |
Still have this issue |
Still have this issue |
Thanks @zs-dima, sorry for the bot noise. |
I have the same problem. Sentry 20.12.1bade073 |
Strange that issue affects Flutter projects, but .Net / .Net Core projects works well. |
Ping @getsentry/visibility |
Correction, @getsentry/workflow is the one responsible for alerts, notifications etc. :D |
Is the issue here a specific integration isn't working, or that alerts aren't working in general? Wasn't clear after reading through this. If it's a specific integration, then @getsentry/ecosystem will be able to help. |
@wedamija alerts (WebHooks) do not work for the Flutter projects |
Hi @zs-dima, just tested this out with a Flutter project and the webhooks worked fine for me. I have a few ways we can move forward:
|
@manuzope thanks a lot for looking into. Webhook still does not work. I could share my dns url and etc in email or etc, just let me know please.
|
Can confirm issues with webhooks from sentry.io. I've tested the URL via curl and it works as expected. When trying via the integration UI on sentry.io I get Test Results "No errors returned". But no message appears in slack which is my integration. |
Hi @zs-dima, mind putting that on GitHub? I can't securely open zip files. @paalandreassen: just want to confirm - after setting up the webhook, did you also configure an alert rule to send to that webhook? |
@BYK Could I kindly ask you to provide any working solution for Flutter project then? |
@zs-dima as we've mentioned earlier, webhooks should work for all projects. There is not project-type specific code around alerting or webhooks so let's shift our focus from "webhooks do not work with Flutter" to something else. We need a lot more information to be able to assist you:
|
Totally agree
Yes, as I told already
Just 1 rule: Send a notification (for all legacy integrations) |
For example here 'bb76c1eca4b14124ae0b8b2280163dd7' printed out and I could see Sentry issue with the same event value: await sentry.SentryFlutter.init(
(options) {
options.dsn = 'https://***@***.ingest.sentry.io/***';
},
);
try {
throw Exception('Test exception');
} catch (exception, stackTrace) {
final ll = await Sentry.captureException(exception, stackTrace: stackTrace);
print(ll);
} |
@zs-dima do you allow us to add a custom webhook that we control to your project alert to do further testing and analysis? The webhook will be on a third-party service and the contents may be readable to that service but not to the public. |
@BYK Sure I will happy to do it to fix this strange issue finally. |
I still haven't seen a clear bug report here, with well-defined steps to reproduce, expected result, and actual result. Here is what I think your steps to reproduce are, @zs-dima: Steps to Reproduce
If this is not what you are doing then please advise.
Here is what I think your definitions of "works" (i.e., expected result) and "does not work" (i.e., actual result) are: Expected ResultLocal Actual ResultNo idea ... what is the actual result you are seeing? |
@zs-dima thanks for the consent. We have added our webhook to both of your projects so once you start triggering them, we should get some useful data for debugging. Also if you can try to explain the issue in more detail as @chadwhitacre suggested, it would still help as the webhook debugging may not turn out to be productive. |
@zs-dima Are you running afoul of action interval? |
@zs-dima I'm confused by your thumbs up on my comment above where I asked for clarification on your bug report. Kindly please answer these questions:
|
@BYK I just triggered webhook as before, Event Id is '41ee8cc575d440b6bee7939d283411da' |
@chadwhitacre it is not action interval case as for the Net Core project I have the same settings and I tried to change Flutter projects action interval as well |
Thank you. Please provide as much information as you can to help us debug. My best hypothesis at this point is that you have a misconfiguration. I find it highly unlikely that the source of the issue/event is related to the failure of the webhook, but I've been surprised before. :o)
Say more about this ... is the alert shared between the Net Core and Flutter projects? Are you triggering the alert via Net Core, and then, within the alert interval, triggering it again from Flutter? If so is the alert interval suppressing the second webhook? In your steps to reproduce do you create the alert, then hit it immediately from the Flutter app? |
Zooming out @manuzope @BYK ... do we have an audit of integration payloads? I'm thinking of something like GitHub does with their webhooks: Is there a possible product improvement around that to make this kind of thing easier to (self-service) debug in the future? Another minor wart: I am seeing unrendered markdown in the WebHooks plugin description: |
@chadwhitacre
However 'Test Plugin' button triggering well. |
@chadwhitacre we have something like that for internal integrations ( It will tell us response codes but not request/response bodies. |
@zs-dima Why? |
I can confirm that there is 0 activity on the webhook that we installed for our testing. |
@chadwhitacre I checked all steps you provided above and everything setup as you described |
And you could see that projects had been setup correctly and 'Test Plugin' button triggering well |
To confirm: this means that you do get something in the ngrok log from "Test Plugin"? Do you get something in the ngrok log when triggering the alert from Net Core? |
@chadwhitacre |
I just sent an event, |
@chadwhitacre I just received event but looks it is related to 'Test exception 8' I fired to test 'International integration' |
@chadwhitacre @BYK @manuzope looks 'International integration' works but it have different json format so I misses messages. |
Sounds like good news. The internal integration is the preferred and default setup, the old webhooks plugin is legacy at this point. Good luck! |
@chadwhitacre @BYK @manuzope Thanks a lot for care and help, all projects work well now :) |
Reproduced with Saas (sentry.io)
In case of several projects: .Net, Flutter, etc and setup webhooks for several projects at once - Flutter project webhooks do not work.
However 'Test' works well for all project + Alerts are the same.
And same webhooks works for other projects.
The text was updated successfully, but these errors were encountered: