{"action":"created","issue":{"url":"https://api.github.com/repos/raix/push/issues/270","repository_url":"https://api.github.com/repos/raix/push","labels_url":"https://api.github.com/repos/raix/push/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/raix/push/issues/270/comments","events_url":"https://api.github.com/repos/raix/push/issues/270/events","html_url":"https://github.com/raix/push/issues/270","id":191761498,"number":270,"title":"Socket hang up, have tested all certificates and device tokens for APN","user":{"login":"ChrisLangel","id":8518491,"avatar_url":"https://avatars.githubusercontent.com/u/8518491?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisLangel","html_url":"https://github.com/ChrisLangel","followers_url":"https://api.github.com/users/ChrisLangel/followers","following_url":"https://api.github.com/users/ChrisLangel/following{/other_user}","gists_url":"https://api.github.com/users/ChrisLangel/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisLangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisLangel/subscriptions","organizations_url":"https://api.github.com/users/ChrisLangel/orgs","repos_url":"https://api.github.com/users/ChrisLangel/repos","events_url":"https://api.github.com/users/ChrisLangel/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisLangel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-25T20:21:39Z","updated_at":"2016-11-27T18:57:02Z","closed_at":null,"body":"Ok, I feel like we are so close here, but end up with socket hang up. I have tested the certificates using openssl on the command line, and manually sent a notification to my phone using the device token obtained looking at the output of `Push.debug = true`.  On the logs, it is claiming `Push: APN configured`. It seems like everything should be in the clear, but when I call a test push from the server with the code:\r\n\r\n``` \r\nPush.send({ \r\n      from: 'push', \r\n      title: 'Hello', \r\n      text: 'World',\r\n      query: {},\r\n  }); \r\n```\r\n\r\nDebug output seems promising\r\n\r\n`Push: Sent message \"Hello\" to 1 ios apps 0 android apps`\r\n\r\nThen there is a socket hang up,\r\n\r\n```\r\nError: socket hang up\r\n    at TLSSocket.onHangUp (_tls_wrap.js:1054:19)\r\n    at TLSSocket.g (events.js:260:16)\r\n    at emitNone (events.js:72:20)\r\n    at TLSSocket.emit (events.js:166:7)\r\n    at endReadableNT (_stream_readable.js:923:12)\r\n    at nextTickCallbackWith2Args (node.js:458:9)\r\n    at process._tickCallback (node.js:372:17) \r\n```\r\n\r\nIt would seem there is an issue calling the APN server, I've double checked to ensure the production/development mismatch is not an issue as well.  The app is deployed on a Digital Ocean droplet using mup. This has been royally frustrating, and I greatly appreciate any insight.  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/raix/push/issues/comments/263139758","html_url":"https://github.com/raix/push/issues/270#issuecomment-263139758","issue_url":"https://api.github.com/repos/raix/push/issues/270","id":263139758,"user":{"login":"ChrisLangel","id":8518491,"avatar_url":"https://avatars.githubusercontent.com/u/8518491?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisLangel","html_url":"https://github.com/ChrisLangel","followers_url":"https://api.github.com/users/ChrisLangel/followers","following_url":"https://api.github.com/users/ChrisLangel/following{/other_user}","gists_url":"https://api.github.com/users/ChrisLangel/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisLangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisLangel/subscriptions","organizations_url":"https://api.github.com/users/ChrisLangel/orgs","repos_url":"https://api.github.com/users/ChrisLangel/repos","events_url":"https://api.github.com/users/ChrisLangel/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisLangel/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T18:57:02Z","updated_at":"2016-11-27T18:57:02Z","body":"Using production certificates, the client config is \r\n```\r\nPush.Configure({\r\n  gcm: {\r\n    projectNumber: '***********',\r\n  },\r\n  badge: true,\r\n  sound: true,\r\n  alert: true,\r\n});\r\n```\r\nthe server: \r\n```\r\n  Push.Configure({\r\n    gcm: {\r\n        apiKey: '***********'\r\n    },\r\n    apn: {\r\n        passphrase: '***********',\r\n        // pem files are placed in the app private folder\r\n        certData: Assets.getText('pushCer.pem'),\r\n        keyData: Assets.getText('pushKey.pem'),\r\n    },\r\n    production: true,\r\n  });\r\n```\r\n\r\nThis is the config you’re referring to right? Thanks for your help \r\n"}}
{"actor":{"display_login":"ChrisLangel"}}