yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

Failed to generate token #95

Open solucionti opened 6 years ago

solucionti commented 6 years ago

I'm trying to generate a token using the new IOS format, at the time of execution I get the following error:

parsedashboard | The dashboard is now available at http://0.0.0.0:4040/ parseserver | parseserver | /parse/node_modules/apn/lib/credentials/token/prepare.js:45 parseserver | throw new VError(err, "Failed to generate token"); parseserver | ^

The code I am running is this:

var apnProvider = new apn.Provider({ token: { key: 'file.p8', // Path to the key p8 file keyId: 'xxxxxxxxx', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/certificate/key) teamId: 'xxxxxxxxx', // The Team ID of your Apple Developer Account (available at https://developer.apple.com/account/#/membership/) }, production: false // Set to true if sending a notification to a production iOS app }); I do not know what I'm doing wrong Thanks for the help.