Skip to content

Return more details when request is malformed #73

Open

Description

@sansolovyov

Currently the only error client gets is "Malformed JSON in request body.", while Jackson's exceptions contain enough details to diagnose a problem (i.e. "Unrecognized token 'ture'").

I could not come up with a PR solving this w/o majorly reordering internals, since json-body-request indicates an error happening with an empty response. If you're interested in that, I can work on a PR given the idea of a change. :)

Activity

  1. weavejester commented on Dec 2, 2024

    @weavejester
    Member

    This seems like a reasonable improvement.

  2. sansolovyov commented on Dec 3, 2024

    @sansolovyov
    Author

    This is what I ended up with, and I'm struggling to do the same here w/o changing json-body-request return type. And json-body-request is public... Not sure which approach would be the best to take here, any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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