Parse Push Notification Cloud Code Error?
<p><strong>UPDATE:</strong> I was getting this error because of a bug that Parse-Server 2.2.17 has. I fixed it by going back to 2.2.16. </p>

<p>Does anyone know why I am getting this error? Here is my cloud code:</p>

<p>`Parse.Cloud.define("Messages", function(request, response) {</p>

<p>var pushQuery = new Parse.Query(Parse.Installation);</p>

<pre><code>Parse.Push.send({
    where: pushQuery,
    data: {
    alert: "New Event Added",
    sound: "default"
    }
    },{
    success: function(){
        console.log("Push Sent!")
    },
    error: function (error) {
        console.log(error)
    },
  useMasterKey: true
</code></pre>

<p>});
});`</p>

<p>Here is the error I am getting: <a href="https://i.stack.imgur.com/gMFkm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gMFkm.png" alt="enter image description here"></a></p>

<p>And then this is how I am calling the code: `PFCloud.callFunctionInBackground("Messages", withParameters: nil) { (object, error) in</p>

<pre><code>            if error == nil {

                print("Success!")

            } else {

                print(error)
            }
        }
</code></pre>

<p>index.js: <a href="https://i.stack.imgur.com/f9u7u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f9u7u.png" alt="enter image description here"></a>
`</p>