Converting circular structure to JSON

Aberta
#677 3 comentários 2 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
22/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
nodejs, typescript
Domínio
api

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
264
Forks
177
Merge médio
10h 5min
PRs com merge (30d)
5

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de XeroAPI/xero-node

Todas as issues de XeroAPI/xero-node

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.