Skip to content

5xx error not reported correctly #49

@dave470003

Description

@dave470003

Even though their API says they'll only return JSON, they will sometimes return HTML if it's a 500 error. In this situation, we should throw a different error message rather than falling back to 'JSON response could not be decoded.'

throw new ServerException("JSON response could not be decoded:\n" . json_last_error_msg());

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions