TypeError: Converting circular structure to JSON

Here’s a solution for a similar error

and