Raygun Feature Request

Feature Request

Javascript - handle circular object references

Current Status:

New

Votes:

2


Avatar

inadj

Raygun should be able to handle circular references.

E.g.

var a = {};
var b = {};
a.other = b;
b.other = a;

JSON.stringify(a);  // Uncaught TypeError: Converting circular structure to JSON

raygun.send('test', a); // is logged with Custom data showing: error: "Cannot add custom data; may contain circular reference" 

The solution is to use a serialiser that can handle this. E.g. github.com/isaacs/json-stringify-safe


There are no comments.