Raygun not reporting some exceptions

alex.small@vutu.re

Posted on
Jun 23 2016

When invoking 'new RaygunClient().SendInBackground(ex);', i am not receiving 90% the exception in the Raygun dashboard. Errors that go through the error handler are ok, but if i run the above from a void method it does not report the exception.


Jason Fauchelle

Raygun

Posted on
Jun 23 2016

Hi Alex,

The first thing to check is that you're not using the SendInBackground method to send Exceptions that cause the application to crash (unhandled exceptions). This is because the application will generally shut down all threads before Raygun will finish sending the report. For unhandled exceptions, only the Send methods should be used.

If that's not applicable, the next thing to do is see if there's any error messages are printed to the debug console from Raygun. If not, set the throwOnError option to true on the Raygun settings in the config file, or set RaygunSettings.Settings.ThrowOnError to true in code. This will cause any exception occurring within the Raygun library to be raised instead of caught. Let me know any exceptions from Raygun you see from any of these steps. Remember to remove throwOnError once you're done with it.

Another possibility, though very unlikely, is if you have an invalid Raygun api key floating around in your app that some exceptions are being sent with.

When you say 90% of the exceptions are missing, do you mean that sometimes an exception will successfully make it to Raygun, but other times the same exception under the same circumstances will fail?

Let me know how you go with all that.

-Jason Fauchelle


Reply