Skip to content

Generated Vanilla js attempts to parse error bodies as json #43

@googleson78

Description

@googleson78

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions