Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting circular structure to JSON #677

Open
aakashbhatiaaccenture opened this issue Mar 7, 2024 · 3 comments
Open

Converting circular structure to JSON #677

aakashbhatiaaccenture opened this issue Mar 7, 2024 · 3 comments

Comments

@aakashbhatiaaccenture
Copy link

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:

  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.

Copy link

github-actions bot commented Mar 7, 2024

PETOSS-400

Copy link

github-actions bot commented Mar 7, 2024

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

@tsdevau
Copy link

tsdevau commented Apr 6, 2024

Same problem on createInvoices endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants