As an optimization, Falcon opts to de/serialize media using sync methods of the standard handlers shipped with Falcon even for an ASGI app, where we can be sure this is safe.
Something seems to break when using JSONHandler with orjson.dumps (which then takes the "binary" path as orjson dumps directly to a bytestring, not str as stdlib):
As an optimization, Falcon opts to de/serialize media using sync methods of the standard handlers shipped with Falcon even for an ASGI app, where we can be sure this is safe.
Something seems to break when using
JSONHandler
withorjson.dumps
(which then takes the "binary" path asorjson
dumps directly to a bytestring, notstr
as stdlib)::arrow_down: