C# provider doesn't retry after failed message delivery
gshackles
Posted on
Nov 23 2013
In my Xamarin.iOS app I just got this message reported to the console:
Error Logging Exception to Raygun.io The remote server returned an error: (503) Service Unavailable: Back-end server is at capacity.
Later on another error was successfully reported, but I noticed that the original error that caused the 503 was never sent. After looking through the code in RaygunClient.cs, it looks like that there's no logic to retry messages that failed due to the server error. Can some safety be added to the client to help avoid losing these errors?
John-Daniel Trask
Raygun
Posted on
Nov 25 2013
Thanks for this suggestion. I've updated both the Xamarin.iOS and Xamarin.Android providers to save the message to the device if sending failed. The provider will then attempt to send the saved message the next time the application starts. This is the same approach we use if there is no internet connection. This is available in GitHub right now and will be updated in the XamarinComponent later this week.
-Jason