docusign-esign-csharp-client: ApiClient.RequestJWTUserToken doesn't fulfill ErrorContent of ApiException from server
It might be useful to have the ErrorContent to be fulfilled here. Especially, it’d be a handful for catching the consent_required
in initial consent request or responding on revocation case.
It looks like a simple change of the following code onto smth like below may do the work:
throw new ApiException(
(int)response.StatusCode,
string.Concat(
"Error while requesting server, received a non successful HTTP code ",
response.ResponseStatus,
" with response Body: '",
response.Content, "'"),
response.Content);
Thanks
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (5 by maintainers)
Hi @yevgen-ponomarenko, we have resolved this with v3.1.3 release. Please have a look, feel free to close this issue. Thanks.
For anyone else facing this issue (e.g. no error returned by the response):
The issue/solution for me was malformed
oauthBasePath
. At first I was usinghttps://account-d.docusign.com/oauth/auth
then triedhttps://account-d.docusign.com
then finally got it to work with justaccount-d.docusign.com
Hope this helps someone else!
@SrinathJandhyala
Docusign doesn’t send clear errors when there is an issue with the request. In my case I was using https://account-d.docusign.com instead of account-d.docusign.com for the AuthServer value and it didn’t tell the issue.
while calling
apiClient.RequestJWTUserToke
Excellent. Thank you for the update.