docusign-esign-node-client
docusign-esign-node-client copied to clipboard
Error is not returned when working with async/await or promise
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 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.