docusign-esign-node-client icon indicating copy to clipboard operation
docusign-esign-node-client copied to clipboard

Error is not returned when working with async/await or promise

Open TristanDELMAS opened this issue 2 years ago • 1 comments

When the request is not accepted by docusign, the only returned thing is a bad request message with no information.

To fix it, ApiClient.js should be reject({...error, data }); on line 592 (if no callback and if error of callApi.

The same is true for sendJWTTokenRequest on line 109 that should be reject({ ...err, data });

TristanDELMAS avatar Sep 21 '23 08:09 TristanDELMAS

@TristanDELMAS We improved API responses (success & error formats) across all APIs. Upgrade to the latest SDK 7.0.1 for this benefit. Let us know if the issue persists after upgrading.

sonawane-sanket avatar Jun 04 '24 15:06 sonawane-sanket