LearnBoost/socket.io — Issue #577: manager.js:466: TypeError: Cannot read property '' of undefined
Author: prawnsalad
Created: 2011-10-13 09:12:07+00:00
State: open

Roughly one server crash every day with the below error. Cannot reproduce manually unfortunately, so unsure what is the root cause.

/var/KiwiIRC/node/node_modules/socket.io/lib/manager.js:466
if (this.roomClients[id][name]) {
^
TypeError: Cannot read property '' of undefined
at Manager.onClientDisconnect (/var/KiwiIRC/node/node_modules/socket.io/lib/manager.js:466:29)
at Socket.disconnect (/var/KiwiIRC/node/node_modules/socket.io/lib/socket.js:297:20)
at Object.parseIRCMessage (/var/KiwiIRC/node/app.js:478:23)
at Object.parseIRCMessage (/var/KiwiIRC/node/kiwi.js:163:16)
at Object.ircSocketDataHandler (/var/KiwiIRC/node/app.js:521:18)
at Object.ircSocketDataHandler (/var/KiwiIRC/node/kiwi.js:166:16)
at CleartextStream. (/var/KiwiIRC/node/app.js:802:14)
at CleartextStream.emit (events.js:64:17)
at CleartextStream._push (tls.js:297:31)
at SecurePair.cycle (tls.js:577:20)