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

Cannot read property 'clients' of undefined #363

Open
twk3 opened this issue Sep 9, 2014 · 1 comment
Open

Cannot read property 'clients' of undefined #363

twk3 opened this issue Sep 9, 2014 · 1 comment

Comments

@twk3
Copy link

twk3 commented Sep 9, 2014

This is the error I get on master when I join the #gitlab channel on freenode

Unhandled message: { prefix: 'services.',
  server: 'services.',
  command: '328',
  rawCommand: '328',
  commandType: 'normal',
  args: [ 'twk3', '#gitlab', 'http://www.gitlab.com/' ] }
{ prefix: 'services.',
  server: 'services.',
  command: '328',
  rawCommand: '328',
  commandType: 'normal',
  args: [ 'twk3', '#gitlab', 'http://www.gitlab.com/' ],
  client_server: 'card.freenode.net' }

/home/dmountney/repo/subway/lib/connection.js:119
    connections[user.username] = {clients: socket.clients, irc_conn: socket.ir
                                                 ^
TypeError: Cannot read property 'clients' of undefined
    at restore_connection (/home/dmountney/repo/subway/lib/connection.js:119:50)
    at /home/dmountney/repo/subway/lib/connection.js:157:11
    at /home/dmountney/repo/subway/node_modules/jugglingdb/lib/model.js:604:9
    at /home/dmountney/repo/subway/node_modules/jugglingdb/lib/model.js:504:13
    at SQLite3.<anonymous> (/home/dmountney/repo/subway/node_modules/jugglingdb-sqlite3/lib/sqlite3.js:304:13)
    at Statement.<anonymous> (/home/dmountney/repo/subway/node_modules/jugglingdb-sqlite3/lib/sqlite3.js:53:16)

npm ERR! [email protected] start: `./subway.js`
npm ERR! Exit status 8
@twk3
Copy link
Author

twk3 commented Sep 9, 2014

Problem re-occurs after npm start, then joining again, but went away after I logged out/logged back into subway.

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