Send push notifications to the cloud server


I have the following problem.
When I send push notifications via localhost, the sending is successful, but when I try to send via the cloud server (aws) it is not sending and it returns error 66.
This by sending with the Parse.Push.send function…
When sending via the /push endpoint, even in the cloud the sending is done.

This is my register in _PushStatus…

        "payload": "{\"alert\":\"Teste\",\"badge\":\"Increment\"}",
        "source": "rest",
        "status": "failed",
        "numSent": 0,
        "pushHash": "xxxx",
        "createdAt": "2022-09-28T03:49:46.810Z",
        "updatedAt": "2022-09-28T03:49:46.886Z",
        "errorMessage": {
            "index": 0,
            "code": 66

I couldn’t find any reference to this error 66.

parse server version 5.2.4.

thank you all…

The errorMessage can contain various errors, it’s just a catch block at the end of a long promise chain.

I’m just guessing but it looks like a MongoDB error. MongoDB error 66 is thrown when trying to mutate an immutable field like _id, or objectId in Parse Platform terms.

  • Is what you’re sending via Parse.Push.send and via the REST API /push endpoint the same? Could you share a full example of both?
  • Are the local and remote Parse Server pointing to the same database?