UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON

JavaScript
//The error means that the object you pass in the request has a circular reference, something like:

var a = {};
a.b = a;I also ran into this issue. It was because I forgot to await for a promise.
Source

Also in JavaScript: