Skip to content

Return of requests is "Error deconding body as JSON: ..." if there is an SerializerException #431

Open
@asdfklgash

Description

@asdfklgash

Instead of (re-)throwing a new / the existing exception of JsonSerializer there is a string returned (not everywhere but in some methods):

string(41) "Error decoding body as JSON: Syntax error"

That's a bit tricky as we cannot catch the error and handle it.
So we've also to check the return of a call (i. e. getApi('issue')->show(...)).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions