Skip to content

"Error: mac verify failure" when pushing notification #1809

Closed
@barnaclejive

Description

@barnaclejive

I am following the parse-server Push quick start guide. When I initiate a push via curl on my local machine, I am seeing a "mac verify failure" in the server node log. Are there aditional steps that are missing from the documentation to make this work?

curl -X POST \
    -H "X-Parse-Application-Id: myapp_id" \
    -H "X-Parse-Master-Key: myapp_masterkey" \
    -H "Content-Type: application/json" \
    -d '{
          "where": {
            "deviceType": {
              "$in": [
                "ios",
                "android"
              ]
            }
          },
          "data": {
            "title": "The Shining",
            "alert": "All work and no play makes Jack a dull boy."
          }
        }'\   http://myapp.us-east-1.elasticbeanstalk.com/parse/push

parse-server-example running on port 8081.
/var/app/current/node_modules/parse-server/lib/ParseServer.js:339
throw err;
^

Error: mac verify failure
at Error (native)
at Object.createSecureContext (_tls_common.js:132:17)
at Object.TLSSocket._init.ssl.onclienthello.ssl.oncertcb.exports.connect (_tls_wrap.js:972:23)
at apnSocket (/var/app/current/node_modules/parse-server/node_modules/parse-server-push-adapter/node_modules/apn/lib/socket.js:56:19)
at Connection. (/var/app/current/node_modules/parse-server/node_modules/parse-server-push-adapter/node_modules/apn/lib/connection.js:199:17)
at _fulfilled (/var/app/current/node_modules/parse-server/node_modules/parse-server-push-adapter/node_modules/apn/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/var/app/current/node_modules/parse-server/node_modules/parse-server-push-adapter/node_modules/apn/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/var/app/current/node_modules/parse-server/node_modules/parse-server-push-adapter/node_modules/apn/node_modules/q/q.js:796:13)
at /var/app/current/node_modules/parse-server/node_modules/parse-server-push-adapter/node_modules/apn/node_modules/q/q.js:604:44
at runSingle (/var/app/current/node_modules/parse-server/node_modules/parse-server-push-adapter/node_modules/apn/node_modules/q/q.js:137:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions