I am using Dapr in a .Net microservices environment to communicate between different services. I have run into a situation where the called service is throwing an exception (could be for any reason) but the calling service only sees it returned as a Dapr InvocationException which seems to hide the original exception.
I can get the request body by calling Response.Content.ReadAsStringAsync which does return the original exception message, but also the entire stack trace and headers.
Is there any way to get the original exception object (ie. InvalidOperationException, ArgumentException etc) after catching the InvocationException?

also the entire stack trace and headers.that is the actual exception, and a lot more useful than just the message. Especially in this cases which clearly tells you the details are in the inner exception