Hi @Andy Williams we're sorry to hear that you’re experiencing crashes with your Azure web app. The stack trace you provided indicates that an exception is being thrown and not properly handled, leading to the crash.
The System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
method is used to throw exceptions while preserving the original stack trace. This can be useful for diagnosing issues, as it allows you to see where the exception originally occurred, not just where it was re-thrown
One common cause of such issues in Azure Web Apps could be related to System.OperationCanceledException
exceptions. This type of exception can occur when a request to the API is cancelled before it is complete.
It’s also worth noting that sometimes, restarting the Azure app service can help fix exceptions. However, this is more of a temporary solution and it’s important to find the root cause of the issue to prevent it from happening again.
To further diagnose this issue, you might want to look into the following:
- Check if there are any long-running tasks that might be getting cancelled prematurely.
- Look for any patterns in the requests that are causing the exceptions. For example, are they all coming from the same client, or do they all involve the same API endpoint?
- Review your error logs in detail. They might contain more information about what’s causing the exception.
Best,
Grace