Unable to handle exceptions globally in an ASP.Net Core app while using GraphQL. #4438
Unanswered
arjundnair-fingent
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi friends,
I have been trying to implement Global Exception Handling using a Middleware in my ASP.Net Core app. I tried a lot, but I'm not able to make it work. Seems like the issue persists only in the project in which I use GraphQL instead of REST. The middleware works hassle-free with controllers it seems. Since we don't need a controller while using GraphQL, I cannot use the method. Please give me an alternate solution.
I implemented Middleware as described in the below link. It is working fine in REST API projects :
Implement Global Exception Handling In ASP.NET Core Application
Beta Was this translation helpful? Give feedback.
All reactions