-
Notifications
You must be signed in to change notification settings - Fork 127
Description
We really often get the, Error while saving changes 'error', when changing the value of an array. Sometimes it works after a couple of refreshes, sometimes it takes forever.
The following error shows up in the editor:
captureconsole.ts:73 TypeError: Converting circular structure to JSON
--> starting at object with constructor 'a'
| property '_additionalEmitters' -> object with constructor 'Array'
| index 0 -> object with constructor 'd'
--- property '_observer' closes the circle
at JSON.stringify ()
at r (index.js:7070:32)
at n.append (index.js:7247:13)
at n.normalize (index.js:7330:18)
at l._submit (index.js:8597:56)
at l.submitOp (index.js:8701:14)
at rG.submitOp (index.js:16198:28)
at realtime.ts:97:33
at r.call (caller.ts:49:24)
at s. (entities-sync.ts:32:20)
at a. (observer-sync.ts:96:22)
at HTMLInputElement.sentryWrapped (helpers.ts:87:17)
at layout.ts:166:42
at sentryWrapped (helpers.ts:87:17)
(anonymous) @ captureconsole.ts:73
submitOp @ index.js:16202
(anonymous) @ realtime.ts:97
call @ caller.ts:49
(anonymous) @ entities-sync.ts:32
(anonymous) @ observer-sync.ts:96
sentryWrapped @ helpers.ts:87
(anonymous) @ layout.ts:166
sentryWrapped @ helpers.ts:87
Error.while.saving.changes.mp4
"It seems we're serializing _observer, which seems a bug." @mvaligursky
Edit: It's worth mentioning that this happens on JSON type attributes.