As it arrives in your log or error chain — the values are your call's own:
payload cannot be encoded as JSON -- give the payload a shape encoding/json accepts -- the cause names what it could not encode [SQL0097]
encoding/json rejected the message: a NaN or infinite float, a channel, func
or complex field, a value that points back at itself, or a MarshalJSON that
returned an error. Nothing was produced, and a schedule that hit it was not
registered. Raised by Produce, ProduceInTx, the batch path, and
Scheduler.Register.
The cause is encoding/json’s own error. It names the type or the field, never the value: SQLStreams encodes the payload in Go before handing it to the driver so that a failure never prints the document. The driver’s own encode error would.
give the payload a shape encoding/json accepts -- the cause names what it could not encode
Looking for a different code? Search every thread.