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)
-
0
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 :)