Skip to main content
Question

Help with C# SDK. DocuSignResponse.StatusCode coming back as "InternalServerError".

  • December 4, 2024
  • 1 reply
  • 22 views

Forum|alt.badge.img+1

I’m trying to use RequestJWTUserToken on the C# SDK, but it keeps failing at “RestClient.SendRequest(Request)”. The docuSignResponse object keeps coming back with a StatusCode of “InternalServerError”. My coworker is able to run a separate project just fine, so the error must be on my end. Does anyone know what might cause the response to error?

 

I’ve checked and made sure the clientId = Integration Key, userId = User ID, and the string from privateKeyBytes matches my RSA Private Key. The scopes are “signature” and “impersonation”.

 

The request being sent has the following HeaderParams:

"[Content-Type, application/x-www-form-urlencoded]",Content-Type,application/x-www-form-urlencoded
"[Cache-Control, no-store]",Cache-Control,no-store
"[Pragma, no-cache]",Pragma,no-cache

 

And the following PostParams:

"[grant_type, urn:ietf:params:oauth:grant-type:jwt-bearer]",grant_type,urn:ietf:params:oauth:grant-type:jwt-bearer
"[assertion, eyJhbGciOiJSUzI1NiIsIn…..

 

 

 

1 reply

Hengfeng Ge
Rising Star
Forum|alt.badge.img+12
  • Rising Star
  • 508 replies
  • December 5, 2024

have you try in postman?

 

FreeLink/甫连信息

🌍 DocuSign Partner | Partner Profile

🏆 DocuSign 2024 APAC Reseller Growth Partner of the Year

🌟 The only DocuSign Partner globally certified as both a Certified eSignature Administrator and eSignature Technical Consultant.

📊 DocuSign Community Leaderboard Top 5 contributor.

🚀 Expertise in DocuSign integrations with on-premises systems for leading enterprises across various industries.


Reply