Search code examples
parse-platformnsurlconnection

Parse.com Analytics not showing


I'm trying to connect to Parse.com 's REST-API via NSURLConnection to track AppOpened metadata.

I get 200 OK back from the API and the headers are the same to the cURL headers but my API calls are not being represented in the data browser on Parse.com . Is NSURLConnection doing something silly I don't know of? API response is the same but one request gets represented while the other one isn't.

NSLog output:

<NSHTTPURLResponse: 0x7ff5eb331ca0> { URL: https://api.parse.com/1/events/AppOpened } { status code: 200, headers {
    "Access-Control-Allow-Methods" = "*";
    "Access-Control-Allow-Origin" = "*";
    Connection = "keep-alive";
    "Content-Length" = 3;
    "Content-Type" = "application/json; charset=utf-8";
    Date = "Sun, 04 Jan 2015 22:42:54 GMT";
    Server = "nginx/1.6.0";
    "X-Parse-Platform" = G1;
    "X-Runtime" = "0.019842";
} }

cURL output:

HTTP/1.1 200 OK
Access-Control-Allow-Methods: *
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Date: Sun, 04 Jan 2015 23:03:51 GMT
Server: nginx/1.6.0
X-Parse-Platform: G1
X-Runtime: 0.012325
Content-Length: 3
Connection: keep-alive

{}

It's the same output. What am I doing wrong? Has anyone experience with this?


Solution

  • Turns out Parse was showing funny API keys the moment I copied them out of the cURL example they provide in their lovely docs. Don't know whose analytics I screwed over but I'm terribly sorry and it wasn't my fault!

    Always copy your API keys out of [Your-Parse-App-Name]->Settings->Keys

    It probably was just a stupid glitch that happened on the Server.