Debugging REST API

Debugging REST API

This question is not answered

Is there any way to debug the REST API calls?  I making a call to grab permissions associated with a particular media gallery and I receive a generic 500 internal server error with no details.  Any way to get more info from the exception so that I can better troubleshoot?  I get nothing in the exception log.

Also, it works in our development environment but not in production for some reason.  So I'm not positive what's going on.  Other calls to the API work, just not this one, so it's not a bad API key.

All Replies
  • I have had the similar issues trying to debug the API calls.  My solution was to rebuild the calls in a trimmed down version as a console app in Visual Studio.  This allowed me to insert breakpoints where ever needed and see exactly what was going to the call and what was coming back.  it was pretty effective for my needs.  if you hit me up out of the forum, i can send you a sample console app to give you an idea of what i did.

  • You can use Fiddler, or another network traffic capture tool, to capture the HTTP requests & responses for your API calls.

    If you're getting a 500 server error, debug teh same way you'd debug an error message on the server - look in the exception logs for a stack trace.

  • I figured it out.  The IIS server logs and Telligent logs weren't logging anything so I ended up doing what Liam had suggested and created a console app with breakpoints and was able to get the exception that way.