Skip to main content
Blog
Home/

Checking API Logs Like the Weather

Mike Borozdin
Summary3 min read

Mike Borozdin shows you how to check API logs in the Docusign UI.

A couple weeks ago I was working on a prototype for a new feature, and somehow I kept getting an error from the Docusign API.  The error stubbornly told me that I was providing the wrong content type, even though I was certain that I was explicitly specifying “application/json." I could probably spend a lot longer on this if it wasn’t for a helpful request logging feature, that was actually implemented nearly a year ago.

What’s interesting about request logging is that it’s available to all users, not just developers.  Having wide availability allows your support staff to be able to debug problems with your user’s account, while they maintain full control.  Just ask them to go to My Preferences / Privacy & Security and at the bottom enable “Request Logging."

The error I was getting was:

Even though I though I was setting the content correctly:

The cool thing about request logging in Docusign is that it logged my request body as well as headers.  What I realized is that I mistyped the header and should have specified in:

The default Content from this HTTP library was “application/x-www-form-urlencoded.”  When I saw the logs on the server side and saw both Content-Type and Content, the problem became crystal clear.

Getting the API logs is also available via API!

If you are developing an application and having problems, or if your customer is having an issue using your integration, this could be an easy way to get to the root of the problem. Docusign has been using the feature to help hundreds of customers who have had trouble with third party software packages.

More information can be found in API Request Logging.

Mike Borozdin
More posts from this author

Related posts

  • Event Notifications using JSON SIM and HMAC
    Developers

    Event Notifications using JSON SIM and HMAC

    Author Jonathan Sammons
    Jonathan Sammons
  • Fast-Track Your Extension Apps with Reference Implementations

    Fast-Track Your Extension Apps with Reference Implementations

    Author Karissa Jacobsen
    Karissa Jacobsen
  • Trending Topics: Latest from our forums (October 2024)
    Author Paige Rossi
    Paige Rossi
Event Notifications using JSON SIM and HMAC

Event Notifications using JSON SIM and HMAC

Author Jonathan Sammons
Jonathan Sammons
Fast-Track Your Extension Apps with Reference Implementations

Fast-Track Your Extension Apps with Reference Implementations

Author Karissa Jacobsen
Karissa Jacobsen
Trending Topics: Latest from our forums (October 2024)
Author Paige Rossi
Paige Rossi

Discover what's new with Docusign IAM or start with eSignature for free

Explore Docusign IAMTry eSignature for Free
Person smiling while presenting