Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot call method 'say' of undefined #338

Open
cjb opened this issue May 12, 2014 · 0 comments
Open

TypeError: Cannot call method 'say' of undefined #338

cjb opened this issue May 12, 2014 · 0 comments

Comments

@cjb
Copy link
Contributor

cjb commented May 12, 2014

Refactor branch. This one's much harder to reproduce, happened after 48 hours of Subway uptime.

{ prefix: 'foo@bar',
  nick: 'foo',
  user: '~foo',
  host: '1.1.1.1',
  command: 'PRIVMSG',
  rawCommand: 'PRIVMSG',
  commandType: 'normal',
  args:
   [ '##javascript',
     'falafel: you can just bust out a function () {} for that' ],
  client_server: 'chat.freenode.net' }

/home/ubuntu/subway/lib/connection.js:307
      client.say(data.target, data.text);
             ^
TypeError: Cannot call method 'say' of undefined
    at Socket.<anonymous> (/home/ubuntu/subway/lib/connection.js:307:14)
    at Socket.EventEmitter.emit [as $emit] (events.js:95:17)
    at SocketNamespace.handlePacket (/home/ubuntu/subway/node_modules/socket.io/lib/namespace.js:335:22)
    at Manager.onClientMessage (/home/ubuntu/subway/node_modules/socket.io/lib/manager.js:488:38)
    at WebSocket.Transport.onMessage (/home/ubuntu/subway/node_modules/socket.io/lib/transport.js:387:20)
    at Parser.<anonymous> (/home/ubuntu/subway/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
    at Parser.EventEmitter.emit (events.js:95:17)
    at finish (/home/ubuntu/subway/node_modules/socket.io/lib/transports/websocket/hybi-16.js:288:16)
    at Parser.expectHandler (/home/ubuntu/subway/node_modules/socket.io/lib/transports/websocket/hybi-16.js:299:15)
    at Parser.add (/home/ubuntu/subway/node_modules/socket.io/lib/transports/websocket/hybi-16.js:466:24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant