{"action":"created","issue":{"url":"https://api.github.com/repos/argon/node-apn/issues/272","labels_url":"https://api.github.com/repos/argon/node-apn/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/argon/node-apn/issues/272/comments","events_url":"https://api.github.com/repos/argon/node-apn/issues/272/events","html_url":"https://github.com/argon/node-apn/issues/272","id":85539410,"number":272,"title":"Error: socket hang up when trying to send a notification","user":{"login":"ricoharisin91","id":12525799,"avatar_url":"https://avatars.githubusercontent.com/u/12525799?v=3","gravatar_id":"","url":"https://api.github.com/users/ricoharisin91","html_url":"https://github.com/ricoharisin91","followers_url":"https://api.github.com/users/ricoharisin91/followers","following_url":"https://api.github.com/users/ricoharisin91/following{/other_user}","gists_url":"https://api.github.com/users/ricoharisin91/gists{/gist_id}","starred_url":"https://api.github.com/users/ricoharisin91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricoharisin91/subscriptions","organizations_url":"https://api.github.com/users/ricoharisin91/orgs","repos_url":"https://api.github.com/users/ricoharisin91/repos","events_url":"https://api.github.com/users/ricoharisin91/events{/privacy}","received_events_url":"https://api.github.com/users/ricoharisin91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-05T13:54:53Z","updated_at":"2015-06-08T06:23:49Z","closed_at":null,"body":"hello\r\n\r\ni'm having a problem with this module and i almost give up with it\r\nso i just recently deployed my script to handle a push notification to android and ios\r\nfor ios i'm using this module\r\n\r\nthe strange thing is, it worked perfectly until this morning and then suddenly it doesn't work anymore\r\n\r\nhere's the error when i use debug\r\n\r\n    apn Initialising connection +1s\r\n    apn 2 left to send +0ms\r\n    apn Socket error occurred +772ms undefined { [Error: socket hang up] code: 'ECONNRESET', sslError: undefined }\r\n    apn Destroying connection +1ms undefined\r\n    apn Removing socket from pool +0ms undefined\r\n    apn Socket closed +0ms undefined\r\n    apn Removing socket from pool +0ms undefined\r\n    apn 2 left to send +0ms\r\n    apn Raising error: +1ms { [Error: socket hang up] code: 'ECONNRESET', sslError: undefined } undefined undefined\r\n    apn Error occurred with trace: +0ms Error: socket hang up\r\n    at SecurePair.error (tls.js:1011:23)\r\n    at EncryptedStream.CryptoStream._done (tls.js:703:22)\r\n    at CleartextStream.read [as _read] (tls.js:499:24)\r\n    at CleartextStream.Readable.read (_stream_readable.js:341:10)\r\n    at EncryptedStream.onCryptoStreamFinish (tls.js:304:47)\r\n    at EncryptedStream.g (events.js:180:16)\r\n    at EncryptedStream.emit (events.js:117:20)\r\n    at finishMaybe (_stream_writable.js:360:12)\r\n    at endWritable (_stream_writable.js:367:3)\r\n    at EncryptedStream.Writable.end (_stream_writable.js:345:5)\r\n\r\ni already generated a new key and cert but the problem is still there\r\neven i tried to create a new instance server for my script and it's not solved anything!\r\n\r\nany thought with it? \r\n\r\nthanks before!\r\n"},"comment":{"url":"https://api.github.com/repos/argon/node-apn/issues/comments/109878387","html_url":"https://github.com/argon/node-apn/issues/272#issuecomment-109878387","issue_url":"https://api.github.com/repos/argon/node-apn/issues/272","id":109878387,"user":{"login":"raza2022","id":5462788,"avatar_url":"https://avatars.githubusercontent.com/u/5462788?v=3","gravatar_id":"","url":"https://api.github.com/users/raza2022","html_url":"https://github.com/raza2022","followers_url":"https://api.github.com/users/raza2022/followers","following_url":"https://api.github.com/users/raza2022/following{/other_user}","gists_url":"https://api.github.com/users/raza2022/gists{/gist_id}","starred_url":"https://api.github.com/users/raza2022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raza2022/subscriptions","organizations_url":"https://api.github.com/users/raza2022/orgs","repos_url":"https://api.github.com/users/raza2022/repos","events_url":"https://api.github.com/users/raza2022/events{/privacy}","received_events_url":"https://api.github.com/users/raza2022/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T06:23:49Z","updated_at":"2015-06-08T06:23:49Z","body":"am using latest version and follow all steps regarding this module. any suggestion will be gretally welcome"}}