Skip to content

Converting circular structure to JSON error with ts-node upgrade #115

@nagarakesh4

Description

@nagarakesh4

Describe the bug
After upgrading ts-node to 10.8.1 , there is an error reported by axios logger . The error is not seen while on earlier versions of ts-node.

Versions
TS-Node: 10.8.1
Axios Logger: 2.6.1

Error Message
Converting circular structure to JSON with ts-node upgrade

Error Stack
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 ()
at StringBuilder.makeData (/node_modules/axios-logger/src/common/string-builder.ts:67:9)
at responseLogger (/node_modules/axios-logger/src/logger/response.ts:20:10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions