github/hubot — Issue #187: IRC adaptor error
Author: ZakStrassberg
Created: 2011-11-22 05:24:55+00:00
State: open

Really strange error on my heroku hosted hubot (IRC adaptor)

I tried to use `hubot show users` but then almost immediately hubot quit with excess flood. When I tried to restart him I got the following error:

2011-11-22T05:21:55+00:00 app[app.1]: /app/node_modules/hubot/node_modules/irc/lib/irc.js:511
2011-11-22T05:21:55+00:00 app[app.1]: throw err;
2011-11-22T05:21:55+00:00 app[app.1]: ^
2011-11-22T05:21:55+00:00 app[app.1]: TypeError: Cannot call method 'indexOf' of undefined
2011-11-22T05:21:55+00:00 app[app.1]: at /app/node_modules/hubot/node_modules/irc/lib/irc.js:158:47
2011-11-22T05:21:55+00:00 app[app.1]: at Array.forEach (native)
2011-11-22T05:21:55+00:00 app[app.1]: at Client. (/app/node_modules/hubot/node_modules/irc/lib/irc.js:137:26)
2011-11-22T05:21:55+00:00 app[app.1]: at Client.emit (events.js:64:17)
2011-11-22T05:21:55+00:00 app[app.1]: at /app/node_modules/hubot/node_modules/irc/lib/irc.js:508:22
2011-11-22T05:21:55+00:00 app[app.1]: at Array.forEach (native)
2011-11-22T05:21:55+00:00 app[app.1]: at Socket. (/app/node_modules/hubot/node_modules/irc/lib/irc.js:505:15)
2011-11-22T05:21:55+00:00 app[app.1]: at Socket.emit (events.js:64:17)
2011-11-22T05:21:55+00:00 app[app.1]: at Socket._onReadable (net.js:671:31)
2011-11-22T05:21:55+00:00 app[app.1]: at IOWatcher.onReadable [as callback] (net.js:177:10)
2011-11-22T05:21:55+00:00 heroku[app.1]: Process exited
2011-11-22T05:21:56+00:00 heroku[app.1]: State changed from up to crashed

I don't think it's my scripts or anything, seeing as nothing was changed in between the script and restarting the bot. I tried a fresh push but that didn't fix it either.