Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get details exception from published Web Api

Is there any way to get detail exception & Stack trace from deployed Web Api?

Even if I deployed in Debug mode, do I get detail error traces?

I got bellow message from server API

"message": "Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details."

This happened only in server, same code running perfectly in local machine.

like image 397
Shubhajyoti Ghosh Avatar asked Jan 22 '14 17:01

Shubhajyoti Ghosh


1 Answers

Did you check the content-type for the request that you are performing?

Sometimes this error comes because you don't specify this value, e.g. "application/json" in the headers of the request.

like image 133
Mauro Bilotti Avatar answered Oct 01 '22 17:10

Mauro Bilotti