Skip to content

TypeError: Converting circular structure to JSON #651

Closed
@momoadeli

Description

@momoadeli

(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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions