Skip to content

TypeError when converting circular structure to JSON. #80

@jeremy-j-ackso

Description

@jeremy-j-ackso

There should be a strategy for dealing with circular JSON structures so that we can get some kind of logging on them.

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'TLSSocket'
    |     property 'parser' -> object with constructor 'HTTPParser'
    --- property 'socket' closes the circle
    at JSON.stringify (<anonymous>)
    at graylog.log [as _log] (/app/node_modules/graylog2/graylog.js:170:31)
    at graylog.info (/app/node_modules/graylog2/graylog.js:106:17)
    at Immediate.<anonymous> (/app/node_modules/winston-graylog2/lib/winston-graylog2.js:79:50)
    at processImmediate (internal/timers.js:456:21)

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