Skip to main content
Solved

Internal server error on GetUserInfo/CreateEnvelope

  • November 27, 2024
  • 2 replies
  • 181 views

Forum|alt.badge.img+3

Dear Support,

We are getting this error on a production account. This is happening after the consent was provided. The token is successfully retrieved using method RequestJWTUserToken. But GetUserInfo/CreateEnvelope return error.

Error while requesting server, received a non successful HTTP code with response Body: {"error":"internal_server_error","reference_id":"c02eb179-6bba-474c-8a25-94d3772219cb"}

Thanks,

Tahir

Best answer by tahirraza

The problem was solved by using the production URL for both the apiBase and oAuthBase parameters. I think this needs to be specified in documentation that both URLs need to be overridden.

var baseClient = new DocuSignClient(prodUrl, prodUrl);
var userInfo = baseClient.GetUserInfo(token);

 

2 replies

Forum|alt.badge.img+8
  • Docusign Employee
  • November 29, 2024

This error usually occurs when the wrong user ID is defined in the JWT token, or the Demo URL is used for the production environment, or the URL itself is wrongly defined.

More information about authentication service endpoints is here: https://developers.docusign.com/platform/auth/reference/


Forum|alt.badge.img+3
  • Author
  • New Voice
  • Answer
  • December 4, 2024

The problem was solved by using the production URL for both the apiBase and oAuthBase parameters. I think this needs to be specified in documentation that both URLs need to be overridden.

var baseClient = new DocuSignClient(prodUrl, prodUrl);
var userInfo = baseClient.GetUserInfo(token);