Parse.com push api - 随机返回404

时间:2014-10-06 16:43:52

标签: push-notification parse-platform http-status-code-404

我的解析api有问题。我发送这些数据:

{
    "where": {
        "deviceType": "android"
    },
    "data": {
        "action": "somestring",
        "aps": {
            "alert": "some title",
            "id": 4353453,
            "s": "some_short_string"
        }
    }
}
使用带标题的https://api.parse.com/1/push方法

POST

Content-Type: "application/json",
X-Parse-Application-Id: "myid",
X-Parse-REST-API-Key: "mykey",
User-Agent: "PHPWebapiClient"

Api主要返回状态200,但有时会返回404.当然,在这种情况下,通知不会起作用,甚至不会出现在解析管理员中。它看起来完全随机,我无法确定原因。有趣的是api总是返回这个标题:

http_code: "HTTP/1.0 200 Connection established"

无论返回什么响应代码。

我尝试重新发送请求,但这没有帮助。

有没有人遇到过类似的问题?请帮我解决这个问题。

0 个答案:

没有答案