guardrail-dev / guardrail-dev/guardrail

Problem parsing error response

Open
#343 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Scala
Stars
541
Forks
138
PR merge metrics
No merged PRs in 30d

Description

When a request has a parameter that does not have the right type, the server returns an error of type string and the client is not able to parse the error.

**Why?**
Seems like the error is returned as code BadRequest and in my app I already have a BadRequest that is of type object and not string.
This means that the error generated by the server about the type being wrong will throw an exception in the client since my bad request is an object and not just a string.

Am I doing something wrong here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.