Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Misleading error message when trying to publish events without Content-Type header #570

Open
jhorstmann opened this issue Feb 21, 2017 · 2 comments
Labels

Comments

@jhorstmann
Copy link

jhorstmann commented Feb 21, 2017

{
    "type":"http://httpstatus.es/400",
    "title":"Bad Request",
    "status":400,
    "detail":"Unexpected character % in position 0, expected '['"
}
@lmontrieux lmontrieux added the bug label May 26, 2017
@lmontrieux lmontrieux assigned lmontrieux and unassigned lmontrieux May 26, 2017
@raychenon
Copy link

There is the same error when the JSON body is malformatted ( misnamed fields, extra ", etc) .
For example, here the first character is "

"[
  {
    "data": {
    // ....
    },
    "data_op": "C",
    "metadata": {
      "eid": "d765de34-09c0-4bbb-8b1e-7160a33a0791",
      "occurred_at": "2018-03-15T17:23:20.311+01:00"
    }
  }
]

@adyach
Copy link
Member

adyach commented Mar 16, 2018

@raychenon thank you for contribution! I have added the issue for the next team alignment meeting, I will notify you about the outcome once it is ready.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants