You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing GET requests against the API, if the Content-Type header is provided, the API rejects the request with status 400 and message "Invalid Json: No content to map due to end-of-input".
Example message when a GET request is done against the /api/alert route with the Content-Type header set to application/json:
A client error occurred on GET /api/alert : Invalid Json: No content to map due to end-of-input at [Source: akka.util.ByteIterator$ByteArrayIterator$$anon$1@4491ed16; line: 1, column: 0]
Steps to Reproduce
As explained above, do a GET request with the Content-Type header set to application/json.
Possible Solutions
Answer the request appropriately and ignore data when none is provided.
The text was updated successfully, but these errors were encountered:
Another solution could be: calling the API correctly, without the useless Content-Type header since this GET APIs, exposed by TheHive, don't accept any content.
Request Type
Bug
Work Environment
Problem Description
When doing GET requests against the API, if the
Content-Type
header is provided, the API rejects the request with status400
and message "Invalid Json: No content to map due to end-of-input".Example message when a GET request is done against the
/api/alert
route with theContent-Type
header set toapplication/json
:Steps to Reproduce
As explained above, do a GET request with the
Content-Type
header set toapplication/json
.Possible Solutions
Answer the request appropriately and ignore data when none is provided.
The text was updated successfully, but these errors were encountered: