{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/1751","repository_url":"https://api.github.com/repos/karma-runner/karma","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/1751/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/1751/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/1751/events","html_url":"https://github.com/karma-runner/karma/issues/1751","id":120888746,"number":1751,"title":"Missing error handler on `socket`.","user":{"login":"binarykitchen","id":177641,"avatar_url":"https://avatars.githubusercontent.com/u/177641?v=3","gravatar_id":"","url":"https://api.github.com/users/binarykitchen","html_url":"https://github.com/binarykitchen","followers_url":"https://api.github.com/users/binarykitchen/followers","following_url":"https://api.github.com/users/binarykitchen/following{/other_user}","gists_url":"https://api.github.com/users/binarykitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/binarykitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarykitchen/subscriptions","organizations_url":"https://api.github.com/users/binarykitchen/orgs","repos_url":"https://api.github.com/users/binarykitchen/repos","events_url":"https://api.github.com/users/binarykitchen/events{/privacy}","received_events_url":"https://api.github.com/users/binarykitchen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2015-12-07T22:54:56Z","updated_at":"2016-06-29T13:42:47Z","closed_at":"2016-01-06T11:05:32Z","body":"I am seeing this in the current test set up and would like to catch this kind of error from the karma server instance. Is that possible?"},"comment":{"url":"https://api.github.com/repos/karma-runner/karma/issues/comments/229359292","html_url":"https://github.com/karma-runner/karma/issues/1751#issuecomment-229359292","issue_url":"https://api.github.com/repos/karma-runner/karma/issues/1751","id":229359292,"user":{"login":"shoesel","id":2435094,"avatar_url":"https://avatars.githubusercontent.com/u/2435094?v=3","gravatar_id":"","url":"https://api.github.com/users/shoesel","html_url":"https://github.com/shoesel","followers_url":"https://api.github.com/users/shoesel/followers","following_url":"https://api.github.com/users/shoesel/following{/other_user}","gists_url":"https://api.github.com/users/shoesel/gists{/gist_id}","starred_url":"https://api.github.com/users/shoesel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoesel/subscriptions","organizations_url":"https://api.github.com/users/shoesel/orgs","repos_url":"https://api.github.com/users/shoesel/repos","events_url":"https://api.github.com/users/shoesel/events{/privacy}","received_events_url":"https://api.github.com/users/shoesel/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T13:42:47Z","updated_at":"2016-06-29T13:42:47Z","body":"Seems this is back in Karma 1.1.0 (it was not occuring in 0.13.22)\r\nI'm running tests with `--single-run false` in PhantomJS 2.1.1 on MacOSX 10.11.4\r\nOutput is:\r\n```\r\nPhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 3281 of 3302 (skipped 21) SUCCESS (25.1 secs / 23.617 secs)\r\nMissing error handler on 'socket'.\r\nTypeError: Cannot read property '93062136' of null\r\n  at onBrowserComplete (/PATH-TO/node_modules/karma-junit-reporter/index.js:120:23)\r\n  at .<anonymous> (/PATH-TO/node_modules/karma/lib/events.js:13:22)\r\n  at emitTwo (events.js:111:20)\r\n  at emit (events.js:191:7)\r\n  at onComplete (/PATH-TO/node_modules/karma/lib/browser.js:143:13)\r\n  at Socket.<anonymous> (/PATH-TO/node_modules/karma/lib/events.js:13:22)\r\n  at emitTwo (events.js:111:20)\r\n  at Socket.emit (events.js:191:7)\r\n  at Socket.onevent (/PATH-TO/node_modules/socket.io/lib/socket.js:335:8)\r\n  at Socket.onpacket (/PATH-TO/node_modules/socket.io/lib/socket.js:295:12)\r\n  at Client.ondecoded (/PATH-TO/node_modules/socket.io/lib/client.js:193:14)\r\n  at Decoder.Emitter.emit (/PATH-TO/node_modules/component-emitter/index.js:134:20)\r\n  at Decoder.add (/PATH-TO/node_modules/socket.io-parser/index.js:247:12)\r\n  at Client.ondata (/PATH-TO/node_modules/socket.io/lib/client.js:175:18)\r\n  at emitOne (events.js:96:13)\r\n  at Socket.emit (events.js:188:7)\r\n  at Socket.onPacket (/PATH-TO/node_modules/engine.io/lib/socket.js:101:14)\r\n  at emitOne (events.js:96:13)\r\n  at WebSocket.emit (events.js:188:7)\r\n  at WebSocket.Transport.onPacket (/PATH-TO/node_modules/engine.io/lib/transport.js:104:8)\r\n  at WebSocket.Transport.onData (/PATH-TO/node_modules/engine.io/lib/transport.js:115:8)\r\n  at WebSocket.onData (/PATH-TO/node_modules/engine.io/lib/transports/websocket.js:76:30)\r\n  at emitTwo (events.js:106:13)\r\n  at WebSocket.emit (events.js:191:7)\r\n  at Receiver.ontext (/PATH-TO/node_modules/ws/lib/WebSocket.js:816:10)\r\n  at /PATH-TO/node_modules/ws/lib/Receiver.js:477:18\r\n  at Receiver.applyExtensions (/PATH-TO/node_modules/ws/lib/Receiver.js:364:5)\r\n  at /PATH-TO/node_modules/ws/lib/Receiver.js:466:14\r\n  at Receiver.flush (/PATH-TO/node_modules/ws/lib/Receiver.js:340:3)\r\n  at Receiver.opcodes.1.finish (/PATH-TO/node_modules/ws/lib/Receiver.js:482:12)\r\n  at Receiver.expectHandler (/PATH-TO/node_modules/ws/lib/Receiver.js:451:33)\r\n  at Receiver.add (/PATH-TO/node_modules/ws/lib/Receiver.js:95:24)\r\n  at Socket.realHandler (/PATH-TO/node_modules/ws/lib/WebSocket.js:800:20)\r\n  at emitOne (events.js:96:13)\r\n  at Socket.emit (events.js:188:7)\r\n  at readableAddChunk (_stream_readable.js:172:18)\r\n  at Socket.Readable.push (_stream_readable.js:130:10)\r\n  at TCP.onread (net.js:542:20)\r\n\r\nPhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR\r\n  Disconnectedundefined\r\n```"}}
{"actor":{"display_login":"shoesel"}}