Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Push Notification Certificate has expired #3479

Closed
makoy21 opened this issue Feb 5, 2017 · 2 comments
Closed

[Help] Push Notification Certificate has expired #3479

makoy21 opened this issue Feb 5, 2017 · 2 comments

Comments

@makoy21
Copy link

makoy21 commented Feb 5, 2017

Hi I'am getting this error when sending push notification from dashboard and via code.

This my code:

Parse.Push.send({
        where: query,
        data: {
            title: title,
            alert: message,
            page: page
        }
    }, {
        success: function() {
            console.log(message);
        },
        error: function(error) {
            // Handle error
        }
    });
}

This the error I'm getting.

Error: certificate has expired: 2017-02-04T07:11:57.000Z
    at validateCredentials (/root/parse-server/node_modules/apn/lib/credentials/validate.js:12:9)
    at /root/parse-server/node_modules/apn/lib/connection.js:163:5
    at _fulfilled (/root/parse-server/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/root/parse-server/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/root/parse-server/node_modules/q/q.js:796:13)
    at /root/parse-server/node_modules/q/q.js:604:44
    at runSingle (/root/parse-server/node_modules/q/q.js:137:13)
    at flush (/root/parse-server/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
/root/parse-server/node_modules/parse-server/lib/ParseServer.js:437
            throw err;
@natanrolnik
Copy link
Contributor

@makoy21 push notifications certificates from Apple are valid only for one year, expiring after that. That's was happened to yours.
Create a new one in developer.apple.com and update it in your Parse Server.

@makoy21
Copy link
Author

makoy21 commented Feb 6, 2017

Hi how can i handle that error to prevent from crashing the parse server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants