Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
googleson78 opened this issue Aug 23, 2020 · 0 comments
Open

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

googleson78 opened this issue Aug 23, 2020 · 0 comments

Comments

@googleson78
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant