xero-node
xero-node copied to clipboard
Converting circular structure to JSON
SDK you're using (please complete the following information):
- Version [e.g. 5.1.0]
Describe the bug With the latest update of the xero-node package, we've started to encounter a "Converting circular structure to JSON" error when we try to convert the response from an API request into a string using JSON.stringify.
To Reproduce Steps to reproduce the behavior:
- Invoke this.xeroClient.accountingApi.getAccounts from the xero-node package
- JSON.stringify the response and log it.
- See error
Expected behavior The response should be stringified.
PETOSS-400
Thanks for raising an issue, a ticket has been created to track your request
Same problem on createInvoices endpoint.