Closed
Description
HI,
Error returned/thrown from @elastic/elasticsearch@6 has circular structure hence it is difficult to stringify using JSON.stringify or send in API response (i.e. using express.js). The Error in legacy version is not circular though.
TypeError: Converting circular structure to JSON
at JSON.stringify ()
I am curious to know the reason behind circular structure of Error. And please suggest if there is a simple way to de-circle the Error circular structure.
Thanks
Metadata
Metadata
Assignees
Labels
No labels