Empty objects
In many cases, if you’re getting an empty object {}
where you don’t expect one
to be, it might be that Promise
that wasn’t awaited. If you get an empty
object, try awaiting it and see if that solves the problem. It could also
be a type that can’t be serialized, like a Symbol
or a JavaScript class.