Skip to main content

Hi Team,
I am getting below error while invoking docusign 

 

makeEnvelope  test@gmail.com

creatingEnvelope

An uncaught exception occured!

Error: Unauthorized

    at Request.callback (/home/finacle/node_modules/docusign-esign/node_modules/superagent/lib/node/index.js:696:15)

    at /home/finacle/node_modules/docusign-esign/node_modules/superagent/lib/node/index.js:906:18

    at IncomingMessage.<anonymous> (/home/finacle/node_modules/docusign-esign/node_modules/superagent/lib/node/parsers/json.js:19:7)

    at IncomingMessage.emit (node:events:539:35)

    at endReadableNT (node:internal/streams/readable:1345:12)

 

This works fine for me in local, however the same is failing through an application deployed in cloud.
I have added redirect uri in apps and keys section of the developer account as below,

http://localhost:3000/

https://sample-domail-xxxx/

Please note the url on cloud is https 

Additionally i have enabled all the https methods available.

Please suggest the resolution.

Hi @Prateek,

If the action works fine locally but is failing through an application deployed in the cloud, the issue may stem from something blocking the connection to the servers (such as a firewall, network settings, etc.). This suggests that the problem is related to your network rather than Docusign.

To investigate further, we will need the following information:
- The Integration Key being used, as this is essential for investigating API calls.
- A HAR file, which would provide more details on the request and any denial reasons.

Since this information is sensitive, I recommend opening a support case so you can securely share the required data.

I hope this helps, and feel free to reach out if you need further assistance.

Best regards,  
Leandro Reis


Reply