When servant-server returns an error with a body (e.g. on failure to parse, or missing required arguments), it's not json-encoded (it's plain-text) "by default" (e.g. when using ReqBody).
However the Vanilla generated functions always attempt to parse the error response body as json, which fails (because of missing double quotes).
When
servant-server
returns an error with a body (e.g. on failure to parse, or missing required arguments), it's not json-encoded (it's plain-text) "by default" (e.g. when usingReqBody
).However the
Vanilla
generated functions always attempt to parse the error response body as json, which fails (because of missing double quotes).