Getting following error while querying analytics events data using Analytics Events API:
"statusCode": 415, "code": "Library.Exception", "message": "HTTP 415 Unsupported Media Type", "developerMessage": "javax.ws.rs.NotSupportedException: 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:
POST http://<events_service_endpoint>:9080/events/queryX-Events-API-AccountName:<global_account_name>X-Events-API-Key:<api_key>Content-type: application/vnd.appd.events+text;v=2Accept: application/vnd.appd.events+json;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:https://docs.appdynamics.com/display/PRO43/Managing+API+Keys
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form