Skip to content Skip to sidebar Skip to footer

Difficult To Diagnose Circular Json

I have an error in my error handler :) Uncaught TypeError: Converting circular structure to JSON. I suspect that there is another exception thrown inside the JSON.stringify call a

Solution 1:

In case anyone else encounters this. It turned out that very occasionally a browser was sending an ErrorEvent object as the argument to window.onerror. A added a check to my error handler to deal with this case.


Post a Comment for "Difficult To Diagnose Circular Json"