# Send push notifications to the cloud server

**URL:** <https://community.parseplatform.org/t/send-push-notifications-to-the-cloud-server/2996>\
**Category:** Cloud Code\
**Created:** [October 17, 2022, 6:13pm UTC](https://community.parseplatform.org/t/send-push-notifications-to-the-cloud-server/2996 "2022-10-17T18:13:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaelpolicarpo](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@rafaelpolicarpo](https://community.parseplatform.org/u/rafaelpolicarpo)\
**Post date:** [October 17, 2022, 6:13pm UTC](https://community.parseplatform.org/t/send-push-notifications-to-the-cloud-server/2996/1 "2022-10-17T18:13:16Z")

</div>

Hi,

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…

---

<div class="post-metadata">

**Author:** ![Manuel](https://community.parseplatform.org/user_avatar/community.parseplatform.org/manuel/32/186_2.png) [@Manuel](https://community.parseplatform.org/u/Manuel)\
**Post date:** [November 1, 2022, 2:20am UTC](https://community.parseplatform.org/t/send-push-notifications-to-the-cloud-server/2996/2 "2022-11-01T02:20:06Z")

</div>

The `errorMessage` can contain various errors, it’s just a catch block at the end of a [long promise chain](https://cs.github.com/parse-community/parse-server/blob/963613ec3fd714aef6fc2be7c2ac935ee1dc63d2/src/Controllers/PushController.js#L117).

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?
