"Invalid_Grant" Error Thrown while Working with UiPath DocuSign Activities

Resolution for "invalid_grant" error thrown while trying to connect to the DocuSign API using the UiPath.DocuSign.Activities.

Issue Description

Sometimes, "invalid_grant" error is thrown while trying to leverage the UiPath DocuSign activities to automate interactions with the DocuSign application.

Root Cause

The "invalid_grant" error usually occurs when the provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

Resolution

To resolve this, ensure that the correct Authorization Code and Redirect URI are leveraged, as explained in the How to Create An Docusign Integration Key guide.