apollographql / apollographql/apollo-client-devtools
CombinedGraphQLErrors: Converting circular structure to JSON
- 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
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