haskell-servant / haskell-servant/servant-js

Generated Vanilla js attempts to parse error bodies as json

Open
#43 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
23
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.