Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

API errors are not valid JSON #15

Description

@romuald

It seems most of the errors are not returned as JSON but at text/html

% curl -D/dev/stderr http://baobab.local/api/events'?some-filter'

HTTP/1.1 500 INTERNAL SERVER ERROR
Content-Type: text/html; charset=utf-8
Date: Tue, 04 Oct 2016 16:45:48 GMT
Server: nginx
Vary: Cookie
Content-Length: 31
Connection: keep-alive

Sorry but something went wrong

The error should probably be wrapped inside simple JSON structure

Activity

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