Converting circular structure to JSON

Aperta
#677 3 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
nodejs, typescript
Ambito
api

Direzione di ricerca

The report names accountingApi.getAccounts as the call that returns the circular response. Start by reproducing it with the current SDK and logging the returned object's keys to find which property refers back to a parent. Done means JSON.stringify on that response succeeds, or the circular reference is removed from what the SDK returns. The thread has been silent for about 940 days with no assignee, so confirm with a maintainer before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
264
Fork
177
Merge medio
10h 5m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di XeroAPI/xero-node

Tutte le issue di XeroAPI/xero-node

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.