sdk-node icon indicating copy to clipboard operation
sdk-node copied to clipboard

JSON.stringify not respected

Open RomainSF opened this issue 1 year ago • 1 comments

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)

RomainSF avatar Sep 20 '24 10:09 RomainSF

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.

sethstone avatar Jan 28 '25 04:01 sethstone