sdk-node
sdk-node copied to clipboard
JSON.stringify not respected
JSON.stringify(this._request, 2, null)
it should be:
JSON.stringify(this._request, null, 2)
Specs:
JSON.stringify(value)
JSON.stringify(value, replacer)
JSON.stringify(value, replacer, space)
I think I'm having a similar issue. It was manifesting as the following error: RangeError: Invalid array length and seems to be emanating from execute() in apicontrollersbase.js. Commenting out the logger.debug(JSON.stringify(this._request, 2, null)); seems to have resolved the issue for me.