This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Description
When using IIS/Azure functions, errors are returned when trying to return the err object as json http output so it'll return this type of error:
Error: ENOENT: no such file or directory, open 'D:\home\site\wwwroot\node_modules\hellosign-sdk\node_modules\when\when.js'
However, a workaround would be parse the err using this function:
JSON.parse(JSON.stringify(err))