Skip to content

Parse Server Crash when iOS push certificate has expired #3842

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

Closed
riccardoch opened this issue May 22, 2017 · 3 comments
Closed

Parse Server Crash when iOS push certificate has expired #3842

riccardoch opened this issue May 22, 2017 · 3 comments

Comments

@riccardoch
Copy link

Issue Description
My development push service certificate has just been expired and Parse Server crashes every time a push is sent.

Parse Server version: 2.4.0
Node version: 6.10.3
Mongo version: 3.2.13

Exception:

Error: certificate has expired: 2017-05-19T09:18:22.000Z
    at validateCredentials (/PARSE_SEVER_PATH/node_modules/apn/lib/credentials/validate.js:12:9)
    at /PARSE_SEVER_PATH/node_modules/apn/lib/connection.js:163:5
    at _fulfilled (/PARSE_SEVER_PATH/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (/PARSE_SEVER_PATH/node_modules/q/q.js:883:30)
    at Promise.promise.promiseDispatch (/PARSE_SEVER_PATH/node_modules/q/q.js:816:13)
    at /PARSE_SEVER_PATH/node_modules/q/q.js:624:44
    at runSingle (/PARSE_SEVER_PATH/node_modules/q/q.js:137:13)
    at flush (/PARSE_SEVER_PATH/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
@flovilmart
Copy link
Contributor

Just update your certificate.

Closing as this behavior is documented on the apn package.

@riccardoch
Copy link
Author

I know, but I think is not a good solution leaving Parse Server crashing when the certificate has been expired

@flovilmart
Copy link
Contributor

It's also a duplicate of #3575

In any case, this is not handled in parse-serve but in https://github.com/parse-server-modules/parse-server-push-adapter

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