Skip to content

Instantly share code, notes, and snippets.

@niallo
Created Sep 30, 2013
Embed
What would you like to do?
/Users/niallo/projects/strider-14/strider/lib/websockets.js:110
id: user._id,
^
TypeError: Cannot read property '_id' of null
at kickoffJob (/Users/niallo/projects/strider-14/strider/lib/websockets.js:110:15)
at Object.UserSocket.events.test (/Users/niallo/projects/strider-14/strider/lib/websockets.js:180:7)
at Socket.EventEmitter.emit [as $emit] (events.js:95:17)
at SocketNamespace.handlePacket (/Users/niallo/projects/strider-14/strider/node_modules/socket.io/lib/namespace.js:335:22)
at Manager.onClientMessage (/Users/niallo/projects/strider-14/strider/node_modules/socket.io/lib/manager.js:488:38)
at WebSocket.Transport.onMessage (/Users/niallo/projects/strider-14/strider/node_modules/socket.io/lib/transport.js:387:20)
at Parser.<anonymous> (/Users/niallo/projects/strider-14/strider/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
at Parser.EventEmitter.emit (events.js:95:17)
at finish (/Users/niallo/projects/strider-14/strider/node_modules/socket.io/lib/transports/websocket/hybi-16.js:288:16)
at Parser.expectHandler (/Users/niallo/projects/strider-14/strider/node_modules/socket.io/lib/transports/websocket/hybi-16.js:299:15)
npm ERR! weird error 8
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment