github/hubot — Issue #125: Running hubut on Heroku/Cedar against hipchat: insta-crash.
Author: blt
Created: 2011-10-31 05:25:28+00:00
State: open

I'm evaluating hubot and followed the instructions [here](http://jonmagic.com/blog/archives/2011/10/28/hipchat-hubot-and-me/), more or less. I've got hubot 1.1.6 and didn't do the modifications to `package.json` mentioned in the linked article. Result:

2011-10-31T05:13:11+00:00 heroku[api]: Deploy ce6446e by briantroutwine@carepilot.com
2011-10-31T05:13:11+00:00 heroku[app.1]: State changed from crashed to created
2011-10-31T05:13:11+00:00 heroku[app.1]: State changed from created to starting
2011-10-31T05:13:12+00:00 heroku[slugc]: Slug compilation finished
2011-10-31T05:13:16+00:00 heroku[app.1]: Starting process with command `bin/hubot -a hipchat -n "Carebot Machine"`
2011-10-31T05:13:17+00:00 app[app.1]: bin/hubot: 3: npm: not found
2011-10-31T05:13:17+00:00 app[app.1]: Loading deploy-local scripts at /app/scripts
2011-10-31T05:13:17+00:00 app[app.1]: Cannot use StringPrep bindings. You may need to `npm install node-stringprep'
2011-10-31T05:13:17+00:00 app[app.1]: Loading hubot core scripts for relative scripts at /app/src/hubot/scripts
2011-10-31T05:13:17+00:00 app[app.1]: Options: { token: '6c28002c1d526a4069769ad7e3170c',
2011-10-31T05:13:17+00:00 app[app.1]: jid: 'REDACTED',
2011-10-31T05:13:17+00:00 app[app.1]: name: 'Carebot Machine',
2011-10-31T05:13:17+00:00 app[app.1]: password: 'REDACTED',
2011-10-31T05:13:17+00:00 app[app.1]: rooms: '@All' }
2011-10-31T05:13:17+00:00 app[app.1]: /@Carebot\b/i
2011-10-31T05:13:17+00:00 app[app.1]: Bot: { _events:
2011-10-31T05:13:17+00:00 app[app.1]: { connect: { [Function: g] listener: [Function] },
2011-10-31T05:13:17+00:00 app[app.1]: maxListeners: 0 },
2011-10-31T05:13:17+00:00 app[app.1]: jabber: null,
2011-10-31T05:13:17+00:00 app[app.1]: keepalive: null,
2011-10-31T05:13:17+00:00 app[app.1]: plugins: {},
2011-10-31T05:13:17+00:00 app[app.1]: jid: 'REDACTED',
2011-10-31T05:13:17+00:00 app[app.1]: password: 'REDACTED',
2011-10-31T05:13:17+00:00 app[app.1]: debug: undefined,
2011-10-31T05:13:17+00:00 app[app.1]: name: 'Carebot Machine' }
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(the rules|the laws)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(image|img)( me)? (.*)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*animate me (.*)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(?:mo?u)?sta(?:s|c)he?(?: me)? (.*)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(translate)( me)?(( from) ([a-z]*))?(( (in)?to) ([a-z]*))? (.*)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*who is ([\w .-]+)\?*$/i

2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*([\w .-]+) is (["'\w: ]+)[.!]*$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*([\w .-]+) is not (["'\w: ]+)[.!]*$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(youtube|yt)( me)? (.*)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(calc|calculate|convert|math)( me)? (.*)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*help$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(?:(satellite|terrain|hybrid)[- ])?map me (.+)/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*show storage$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*show users$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*PING$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*ECHO (.*)$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*TIME$/i
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*DIE$/i
2011-10-31T05:13:17+00:00 app[app.1]: Loading hubot-scripts from /app/hubot-scripts.json
2011-10-31T05:13:17+00:00 app[app.1]: /^Carebot Machine:?\s*(.*) tweet/i
2011-10-31T05:13:17+00:00 app[app.1]: Successfully connected to Redis
2011-10-31T05:13:17+00:00 app[app.1]: Connected to HipChat
2011-10-31T05:13:17+00:00 app[app.1]: GET /v1/rooms/list null
2011-10-31T05:13:17+00:00 app[app.1]: GET /v1/users/list null
2011-10-31T05:13:17+00:00 heroku[app.1]: State changed from starting to up
2011-10-31T05:13:17+00:00 app[app.1]: hipchat error: 401
2011-10-31T05:13:17+00:00 app[app.1]:
2011-10-31T05:13:17+00:00 app[app.1]: /app/node_modules/hubot/src/hubot/hipchat.coffee:69
2011-10-31T05:13:17+00:00 app[app.1]: for (_i = 0, _len = _ref.length; _i < _len; _i++) {
2011-10-31T05:13:17+00:00 app[app.1]: ^
2011-10-31T05:13:17+00:00 app[app.1]: TypeError: Cannot read property 'length' of undefined
2011-10-31T05:13:17+00:00 app[app.1]: at /app/node_modules/hubot/src/hubot/hipchat.coffee:69:39
2011-10-31T05:13:17+00:00 app[app.1]: at IncomingMessage. (/app/node_modules/hubot/src/hubot/hipchat.coffee:172:20)
2011-10-31T05:13:17+00:00 app[app.1]: at IncomingMessage.emit (events.js:81:20)
2011-10-31T05:13:17+00:00 app[app.1]: at HTTPParser.onMessageComplete (http.js:133:23)
2011-10-31T05:13:17+00:00 app[app.1]: at CleartextStream.ondata (http.js:1213:22)
2011-10-31T05:13:17+00:00 app[app.1]: at CleartextStream._push (tls.js:291:27)
2011-10-31T05:13:17+00:00 app[app.1]: at SecurePair._cycle (tls.js:565:20)
2011-10-31T05:13:17+00:00 app[app.1]: at EncryptedStream.write (tls.js:97:13)
2011-10-31T05:13:17+00:00 app[app.1]: at Socket.ondata (stream.js:40:26)
2011-10-31T05:13:17+00:00 app[app.1]: at Socket.emit (events.js:64:17)
2011-10-31T05:13:18+00:00 heroku[app.1]: Process exited