Skip to main content

I’m trying to use the sdk for an integration, and when I pass the credentials in the “RequestJWTUserToken” method, it errors out at the first null check:

“if (!string.IsNullOrEmpty(userId))”.

 

When looking at the userId object, it’s set correctly to my User ID on DocuSign. It’s not null or empty, so I’m not sure why it’s erroring out here.

If I let it run through, I get the error:
"Error while requesting server, received a non successful HTTP code with response Body: "

So it’s not reaching the point where the DocuSignResponse object is created.

 

I’m not sure what’s going wrong here, as my credentials seem correct for the clientId, userId, oauthBasePath, and the privateKey. My coworker who has worked with DocuSign before and I are both stumped.

 

###

NEVERMIND, the problem seems to be combing from multiple requests on the front-end trying to write at the same time. It’s running the DocuSignClient prematurely in some cases.

Hello Colton,

The error message "User Id not supplied or is invalid!", seems to be related to the JWT header, or consent wasn't granted for this user.

To further verify you can check this walkthrough to generate an access token, where you can review these points.

https://developers.docusign.com/platform/auth/jwt/jwt-get-token/

 

Thanks,


you can decode the jwt assertion by jwt.io. or try by postman. is it return the same error always or sometimes.

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