jonathanrico
jonathanrico

Reputation: 11

DocuSign OAuth Token error - "An entry with the same key already exists"

I'm getting an invalid request error message while trying to obtain an Oauth token from the Docusign API. I can't figure out what could be wrong here, the error is also reproducible using the DocuSign API explorer (http://iodocs.docusign.com/). See the request and response below:

Request

{ "uri": "https://demo.docusign.net/restapi/v2/oauth2/token", "method": "POST", "headers": { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", "Content-Length": 145 }, "body": "[email protected]&password=MYPASSWORD&client_id=MYINTEGRATORKEY&grant_type=password&scope=api" }

Response

{ "error": "invalid_request", "error_description": "An entry with the same key already exists." }

I've tried with different keys and i'm getting the same result. This call was working before but it's now throwing this exception. Any ideas?

Upvotes: 1

Views: 1059

Answers (1)

Ergin
Ergin

Reputation: 9356

The error message is not very helpful and needs to be changed, but this occurs when you have reached your limit for OAuth tokens. You are allowed 10 OAuth tokens in your account, and this error occurs when you reach your limit. To resolve login to your demo DocuSign Console at demo.docusign.com and in the top right click on your profile icon and go to

Preferences -> Connected Apps

From there you should see a list of your OAuth keys. If you have 10 listed, then that's most likely your problem. Try revoking one and that will allow you to create a new token...

enter image description here

Upvotes: 1

Related Questions