Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Converting circular structure to JSON #651

Closed
momoadeli opened this issue Jul 13, 2016 · 0 comments
Closed

TypeError: Converting circular structure to JSON #651

momoadeli opened this issue Jul 13, 2016 · 0 comments

Comments

@momoadeli
Copy link

momoadeli commented Jul 13, 2016

(Raven version 2.3.0)
I'm using the snippet below in my AngularJS Ajax exception handler and getting the circular reference error above.

        Raven.captureException(new Error('HTTP response error '), {
            extra: {
                _config: rejection.config,
                _status: rejection.status
            }
        });

If I remove the _config attribute it works but I have little exception info captured.

if I nullify 'config.context' it also works and I can keep config.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant