Knowledge Base

Showing results for 
Search instead for 
Did you mean: 

Error: "HTTP 415 Unsupported Media Type" when querying analytics events data using API

 Getting following error while querying analytics events data using Analytics Events API:


"statusCode": 415, 
"code": "Library.Exception", 
"message": "HTTP 415 Unsupported Media Type", 
"developerMessage": " HTTP 415 Unsupported Media Type"


This can happen when the content type is not used or incorrectly specified,  rerun the API query with Content-type:

Content-type: application/;v=2


Example Query Request

POST http://<events_service_endpoint>:9080/events/query
Content-type: application/;v=2
Accept: application/;v=2

SELECT * FROM county WHERE size>=30 AND population>20000

Note: Also make sure to have the right API Key as per the following doc:




Version history
Revision #:
2 of 2
Last update:
‎12-29-2017 01:49 AM
Updated by:
Labels (1)

Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.
0 Kudos