XeroAPI / xero-node

Xero Node SDK for OAuth 2.0 generated from XeroAPI/Xero-OpenAPI
http://developer.xero.com/
MIT License
197 stars 159 forks source link

Converting circular structure to JSON #677

Open aakashbhatiaaccenture opened 6 months ago

aakashbhatiaaccenture commented 6 months ago

SDK you're using (please complete the following information):

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:

  1. Invoke this.xeroClient.accountingApi.getAccounts from the xero-node package
  2. JSON.stringify the response and log it.
  3. See error

Expected behavior The response should be stringified.

github-actions[bot] commented 6 months ago

PETOSS-400

github-actions[bot] commented 6 months ago

Thanks for raising an issue, a ticket has been created to track your request

tsdevau commented 5 months ago

Same problem on createInvoices endpoint.