Closed gowridev closed 5 months ago
When this happens? What is your environment? What are you trying to do: start the server or trigger a push?
Trigger a push, this happens.
I sent a curl command curl -i -X POST \ -H "X-Parse-Application-Id: 9vEs0Z6di8uz**_" \ -H "X-Parse-Master-Key: 9O54LhBKV8oBg_***" \ -H "Content-Type: application/json" \ -d '{ "where": { "deviceType": "ios" }, "data": { "title": "The Shining", "alert": "All work and no play makes Jack a dull boy." } }'\ https://localhost:1337/parse/push
I got this message in the console.
DEBUG=apn VERBOSE=1 node index.js parse-server-example running on port 1337. started scheduler verbose: REQUEST for [POST] /parse/push: { "where": { "deviceType": "ios" }, "data": { "title": "The Shining", "alert": "All work and no play makes Jack a dull boy." } } method=POST, url=/parse/push, host=localhost:1337, user-agent=curl/7.43.0, accept=/, x-parse-application-id=9vEs0Z6di8uzm_, x-parse-master-key=9O54LhBKV8oBg0t_, content-type=application/json, content-length=181, deviceType=ios, title=The Shining, alert=All work and no play makes Jack a dull boy. verbose: RESPONSE from [POST] /parse/push: { "headers": { "X-Parse-Push-Status-Id": "OBgoqZhCod" }, "response": { "result": true } } X-Parse-Push-Status-Id=OBgoqZhCod, result=true verbose: sending push to 1 installations apn Initialising connection +0ms apn Loading Credentials +1ms apn 1 left to send +4ms apn Socket error occurred +1s undefined { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } apn Destroying connection +84ms undefined apn Removing socket from pool +0ms undefined apn Raising error: +1ms { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } undefined undefined apn Error occurred with trace: +0ms Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) verb parse-server-push-adapter APNS APNS Connection 0 Socket Error apn Socket closed +2ms undefined apn Removing socket from pool +0ms undefined verb parse-server-push-adapter APNS APNS Connection 0 Disconnected apn 1 left to send +0ms apn Initialising connection +1s apn 1 left to send +0ms apn Socket error occurred +836ms undefined { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } apn Destroying connection +0ms undefined apn Removing socket from pool +1ms undefined apn Raising error: +0ms { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } undefined undefined apn Error occurred with trace: +0ms Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) verb parse-server-push-adapter APNS APNS Connection 0 Socket Error apn Socket closed +1ms undefined apn Removing socket from pool +0ms undefined verb parse-server-push-adapter APNS APNS Connection 0 Disconnected apn 1 left to send +0ms apn Initialising connection +2s apn 1 left to send +0ms apn Socket error occurred +831ms undefined { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } apn Destroying connection +1ms undefined apn Removing socket from pool +0ms undefined apn Raising error: +1ms { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } undefined undefined apn Error occurred with trace: +0ms Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) verb parse-server-push-adapter APNS APNS Connection 0 Socket Error apn Socket closed +1ms undefined apn Removing socket from pool +0ms undefined verb parse-server-push-adapter APNS APNS Connection 0 Disconnected apn 1 left to send +0ms apn Initialising connection +4s apn 1 left to send +0ms apn Socket error occurred +856ms undefined { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } apn Destroying connection +0ms undefined apn Removing socket from pool +0ms undefined apn Raising error: +0ms { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } undefined undefined apn Error occurred with trace: +0ms Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) verb parse-server-push-adapter APNS APNS Connection 0 Socket Error apn Socket closed +2ms undefined apn Removing socket from pool +0ms undefined verb parse-server-push-adapter APNS APNS Connection 0 Disconnected apn 1 left to send +0ms apn Initialising connection +8s apn 1 left to send +1ms apn Socket error occurred +923ms undefined { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } apn Destroying connection +0ms undefined apn Removing socket from pool +0ms undefined apn Raising error: +1ms { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } undefined undefined apn Error occurred with trace: +0ms Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) verb parse-server-push-adapter APNS APNS Connection 0 Socket Error apn Socket closed +0ms undefined apn Removing socket from pool +0ms undefined verb parse-server-push-adapter APNS APNS Connection 0 Disconnected apn 1 left to send +1ms apn Initialising connection +16s apn 1 left to send +1ms apn Socket error occurred +895ms undefined { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } apn Destroying connection +0ms undefined apn Removing socket from pool +0ms undefined apn Raising error: +0ms { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } undefined undefined apn Error occurred with trace: +35ms Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) verb parse-server-push-adapter APNS APNS Connection 0 Socket Error apn Socket closed +1ms undefined apn Removing socket from pool +0ms undefined verb parse-server-push-adapter APNS APNS Connection 0 Disconnected apn 1 left to send +1ms apn Initialising connection +32s apn 1 left to send +0ms apn Socket error occurred +843ms undefined { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } apn Destroying connection +1ms undefined apn Removing socket from pool +0ms undefined apn Raising error: +0ms { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' } undefined undefined apn Error occurred with trace: +0ms Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1092:19) at TLSSocket.g (events.js:286:16) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT (_stream_readable.js:973:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) verb parse-server-push-adapter APNS APNS Connection 0 Socket Error apn Socket closed +1ms undefined apn Removing socket from pool +0ms undefined verb parse-server-push-adapter APNS APNS Connection 0 Disconnected
Closing as outdated
I am getting below error. could you please guide me. App/0verb parse-server-push-adapter APNS APNS Connection 0 Socket Error2016-09-15T17:22:18.430+0530 App/0 ^2016-09-15T17:22:18.449+0530 App/0 throw err;2016-09-15T17:22:18.449+0530 App/0Error: socket hang up2016-09-15T17:22:18.451+0530 App/0 at TLSSocket.onHangUp (_tls_wrap.js:1054:19)2016-09-15T17:22:18.451+0530 App/0 at TLSSocket.g (events.js:260:16)2016-09-15T17:22:18.451+0530 App/0 at endReadableNT (_stream_readable.js:921:12)2016-09-15T17:22:18.451+0530 App/0 at emitNone (events.js:72:20)2016-09-15T17:22:18.451+0530 App/0 at nextTickCallbackWith2Args (node.js:442:9)2016-09-15T17:22:18.451+0530 App/0 at process._tickDomainCallback (node.js:397:17)2016-09-15T17:22:18.452+0530 App/0npm ERR! Linux 3.19.0-33-generic2016-09-15T17:22:18.505+0530 App/0npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"2016-09-15T17:22:18.506+0530 App/0npm ERR! node v4.5.02016-09-15T17:22:18.512+0530 App/0npm ERR! code ELIFECYCLE2016-09-15T17:22:18.516+0530 App/0 at TLSSocket.emit (events.js:166:7)2016-09-15T17:22:18.451+0530 App/0npm ERR! Exit status 72016-09-15T17:22:18.523+0530 App/0npm ERR! Failed at the parse-server-example@1.4.0 start script 'node index.js'.2016-09-15T17:22:18.523+0530 App/0npm ERR! This is most likely a problem with the parse-server-example package,2016-09-15T17:22:18.524+0530 App/0npm ERR! not with npm itself.2016-09-15T17:22:18.525+0530 App/0npm ERR! Tell the author that this fails on your system:2016-09-15T17:22:18.526+0530 App/0npm ERR! node index.js2016-09-15T17:22:18.526+0530 App/0npm ERR! npm bugs parse-server-example2016-09-15T17:22:18.528+0530 App/0npm ERR! You can get information on how to open an issue for this project with:2016-09-15T17:22:18.527+0530 App/0npm ERR! Or if that isn't available, you can get their info via:2016-09-15T17:22:18.529+0530 App/0npm ERR! 2016-09-15T17:22:18.530+0530 App/0npm ERR! npm owner ls parse-server-example2016-09-15T17:22:18.532+0530 App/0npm ERR! There is likely additional logging output above.2016-09-15T17:22:18.532+0530 App/0npm ERR! 2016-09-15T17:22:18.523+0530 App/0npm ERR! Please include the following file with any support request:2016-09-15T17:22:18.543+0530 App/0npm ERR! /home/vcap/app/npm-debug.log2016-09-15T17:22:18.544+0530 App/0npm ERR! npm v2.15.9