haskell-servant / haskell-servant/servant-js
Generated Vanilla js attempts to parse error bodies as json
Open
- 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.