Exceptions not being reported in Raygun Portal

Kingram

Posted on
Sep 28 2017

The issue is that raygun is not reporting Errors.

Environment: iOS Framework: Xamarin.iOS Tested on Physical Device and Simulator.

Setup/Integration:

    static void Main(string[] args)
    {
        RaygunClient.Initialize(Constants.RaygunAppId).AttachCrashReporting();
        RaygunClient.Current.SendingMessage += Current_SendingMessage;

        UIApplication.Main(args, null, "AppDelegate");
    }

Currently testing the following code:

try
{
  // Do something here that might go wrong
}
catch (Exception e)
{
  RaygunClient.Current.SendInBackground(e);
}

Nothing Reported in Raygun. API Key Is Valid as Other Errors are being reported.


Jason Fauchelle

Raygun

Posted on
Sep 28 2017

Hi Kingram,

What kind of exception is occurring within the try catch block? If it's a null reference exception, try testing with a different type of exception and see if there is still a problem.

In Xamarin.iOS, null reference exceptions are known to have issues when occurring in try/catch blocks.

Please let me know how that goes.

-Jason Fauchelle


Kingram

Posted on
Sep 28 2017

The exception Being thrown is an OperationCanceledException. I've also tried throwing a generic Exception as well all producing the same results.


Jason Fauchelle

Raygun

Posted on
Sep 28 2017

Hi Kingram,

I have not been able to reproduce this issue so far using the code you posted. Please answer the following questions and I'll be able to dive into this issue further.

What iOS version is this issue occurring on? Are you able to test this on a different iOS version that you've known to work?

Make sure that you don't have any inbound filters setup for that Raygun app that could be rejecting the exception reports.

Do you have any logic in your SendingMessage event handler that could be cancelling these exceptions?

Is the app crashing around the time this exception is being sent? A crash would interrupt the background thread used to send the report.

Make sure an internet connection is available at the time the exception report is being sent. (Though if there isn't, Raygun would send it the next time the app starts, or gets another chance to send).

Reports don't appear in Raygun instantly. Could you check to see if any of the reports you were expecting have arrived now.

-Jason Fauchelle


Kingram

Posted on
Sep 29 2017

ios 9 and up.

yes, I am able to test on different iOS versions all producing the same result.

How do you determine if inbound filters are set?

No Logic in my Sending Message Event Handler that would cancel the exceptions.

App is not crashing.

The Internet is connected.


Jason Fauchelle

Raygun

Posted on
Sep 29 2017

Hi Kingram,

When Crash Reporting is selected in the left hand sidebar of Raygun, you can click the 'Filters' sub item below it to see a list of rules that reject incoming messages. You have several app-version filters, but you'll be the one to determine if they could be rejecting the messages you're testing.

-Jason Fauchelle


Kingram

Posted on
Oct 03 2017

Thank you for the support, the issue was addressed by removing the filters that disregarded the particular incoming raygun issues.


Jason Fauchelle

Raygun

Posted on
Oct 03 2017

Hi Kingram,

Excellent, great to hear that the issue has been resolved. Let us know anytime you have further questions about Raygun.

-Jason Fauchelle


Reply