Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Handle ASP.NET Core exceptions gracefully in TwiML webhooks

Blog post from Twilio

Post Details
Company
Date Published
Author
Niels Swimberghe
Word Count
2,614
Language
English
Hacker News Points
-
Summary

A neutral summary of the text is: ASP.NET Core provides two ways to handle exceptions gracefully in TwiML webhooks: using an exception handler or an exception filter. The exception handler solution works for all of ASP.NET Core and handles logging, while the exception filter solution only works for MVC but integrates well within it. Both solutions can be used together in the same project. Additionally, there is a fallback webhook that can be configured to send HTTP requests back to the application or another host. To further learn about ASP.NET Core and Twilio, resources such as Forward Voicemails with Transcript to your Email using C# and ASP.NET Core, Find your U.S. Representatives and Congressional Districts with SMS and ASP.NET Core, and Respond to Twilio Webhooks using Azure Functions are available.