anthonygauthier / axios-curlirize

axios plugin converting requests to cURL commands, saving and logging them.
MIT License
186 stars 31 forks source link

curlirize introduce a circular structure in axios #37

Closed thib3113 closed 3 years ago

thib3113 commented 3 years ago

Here is the error I can see If my request produce an error in jest :

(node:32584) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    |     property 'curlObject' -> object with constructor 'CurlHelper'
    --- property 'request' closes the circle
    at stringify (<anonymous>)
    at writeChannelMessage (internal/child_process/serialization.js:117:20)
    at process.target._send (internal/child_process.js:805:17)
    at process.target.send (internal/child_process.js:703:19)
    at reportSuccess (./node_modules/jest-worker/build/workers/processChild.js:67:11)