Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Unclear Exception message #2983


User avatar
0
okeziestanley created

Hello, guys, I have been using this framework for some time and I am truly enjoying it. But one improvement that can be made is to always display clear exception messages. For example, when I tried to reach an endpoint without specifying

"Content-Type":"application/json"

header I get this exception logged:

17:20:47,573, ERROR, Abp.WebApi.ExceptionHandling.AbpApiExceptionFilterAttribute, 6, Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details. - System.Web.Http.HttpResponseException: Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.
   at System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage request, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)
   at System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage request, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger)
   at System.Web.Http.ModelBinding.FormatterParameterBinding.<ExecuteBindingAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---

This doesn't say anything about the cause of the issue, I had to think deeply to understand something as simple as this Thanks PS Also still waiting guidelines as to contribute to the project


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We are trying to use as much clear as possible exception messages in ABP but I think this is a message from .Net Framework. Thanks for reminding about contribute guideline, we will try to prepare it.

    thanks for your feedbacks :)