apollographql / apollographql/apollo-client-devtools

CombinedGraphQLErrors: Converting circular structure to JSON

Open
#1,791 1 comment 0 reactions 0 assignees View on GitHub
:wilted_flower: needs-reproduction 🏓 awaiting-contributor-response
Dominant language
TypeScript
Stars
1.5k
Forks
172
Avg merge
10m
Merged PRs (30d)
8

Description

Error on Cache tab:

```
CombinedGraphQLErrors: Converting circular structure to JSON
--> starting at object with constructor 't'
| property 'policies' -> object with constructor 'e'
| property 'config' -> object with constructor 'Object'
--- property 'cache' closes the circle

CombinedGraphQLErrors: Converting circular structure to JSON
--> starting at object with constructor 't'
| property 'policies' -> object with constructor 'e'
| property 'config' -> object with constructor 'Object'
--- property 'cache' closes the circle
at chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:463400
at chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:373723
at s._next (chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:373154)
at t.next (chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:336527)
at t._next (chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:336912)
at t.next (chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:336527)
at chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:374961
at q (chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:336233)
at t.next (chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:374763)
at t.next (chrome-extension://jdkknkkbebbapilgoeccciglkfbmbnfm/panel.js:1:377617)
```

### Additional details

### `@apollo/client` version

### Apollo Client Devtools version
4.24.2 (Chrome)

Contributor guide

Open the contributing guide

Research direction

Reproduce the error on the Cache tab with Apollo Client Devtools 4.24.2 and inspect the panel.js path shown in the stack trace. Determine which Cache-tab data is being serialized and verify that the tab can render the cache without the circular-structure error; the issue does not identify source files or an @apollo/client version.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.