Ionic Insights: Could not send insights. Error: Unsuccessful HTTP response
Opened this issue · 3 comments
DiegoRBaquero commented
Just getting started out, I follow this: https://docs.ionic.io/setup.html
My code:
app.config(function($ionicCloudProvider) {
$ionicCloudProvider.init({
"core": {
"app_id": "12115738"
}
});
});
and there's this request which fails: POST https://api.ionic.io/insights
Response:
{"meta": {"status": 422, "request_id": "fb3140cd-d05e-473d-c7dd-af61472a8e25", "version": "2.0.0-beta.0"}, "error": {"link": null, "details": [{"parameter": "insights.0.app_id", "errors": ["Missing data for required field."], "error_type": "required"}], "message": "An error occurred while validating the request parameters.", "type": "UnprocessableEntity"}}
What do I need to do?
juankysmith commented
Same thing is happening to me
AdamMadrzejewski commented
I have same problem, this is my request:
{"insights":[{"stat":"mobileapp.opened","value":1,"created":"2017-04-07T11:42:23.611Z"}]}
kylethielk commented
For those running into this issue and simply want to disable insights see: #164