flowdock / hubot-flowdock

Flowdock adapter for Hubot chat bot
94 stars 60 forks source link

TypeError: Object #<Object> has no method 'isArray' #6

Closed philipp-spiess closed 12 years ago

philipp-spiess commented 12 years ago

Hey,

I receive this error everytime I try to run hubot. I've set up Hubot on Heroku, and also tried to reinstall the whole system, but I continue getting this exception, here is a little dump hope this can help you.

2012-03-05T17:08:46+00:00 heroku[web.1]: Starting process with command `bin/hubot -a flowdock -n Hubot`
2012-03-05T17:08:46+00:00 app[web.1]: bin/hubot: 3: npm: not found
2012-03-05T17:08:47+00:00 app[web.1]: [Mon, 05 Mar 2012 17:08:47 GMT] INFO Loading scripts from /app/scripts
2012-03-05T17:08:47+00:00 app[web.1]: [Mon, 05 Mar 2012 17:08:47 GMT] INFO Loading scripts from /app/src/scripts
2012-03-05T17:08:48+00:00 app[web.1]: [Mon, 05 Mar 2012 17:08:48 GMT] INFO Loading hubot-scripts from /app/node_modules/hubot-scripts/src/scripts
2012-03-05T17:08:48+00:00 app[web.1]:
2012-03-05T17:08:48+00:00 app[web.1]:                 ^
2012-03-05T17:08:48+00:00 app[web.1]:       if (!util.isArray(flows)) flows = [flows];
2012-03-05T17:08:48+00:00 app[web.1]: /app/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:60
2012-03-05T17:08:48+00:00 app[web.1]: TypeError: Object #<Object> has no method'isArray'
2012-03-05T17:08:48+00:00 app[web.1]:     at /app/node_modules/hubot-flowdock/src/flowdock.coffee:93:22
2012-03-05T17:08:48+00:00 app[web.1]:     at Request.<anonymous> (/app/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:459:16)
2012-03-05T17:08:48+00:00 app[web.1]:     at Request.callback (/app/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:118:22)
2012-03-05T17:08:48+00:00 app[web.1]:     at Request._callback (/app/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:54:16)
2012-03-05T17:08:48+00:00 app[web.1]:     at IncomingMessage.emit (events.js:81:20)
2012-03-05T17:08:48+00:00 app[web.1]:     at Flowdock.connect (/app/node_modules/hubot-flowdock/src/flowdock.coffee:54:30)
2012-03-05T17:08:48+00:00 app[web.1]:     at Session.stream (/app/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:60:17)
2012-03-05T17:08:48+00:00 app[web.1]:     at Request.emit (events.js:64:17)
2012-03-05T17:08:48+00:00 app[web.1]:     at IncomingMessage.<anonymous> (/app/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:418:14)
2012-03-05T17:08:48+00:00 app[web.1]:     at HTTPParser.onMessageComplete (http.js:133:23)
2012-03-05T17:08:49+00:00 heroku[web.1]: Process exited with status 1
2012-03-05T17:08:49+00:00 heroku[web.1]: State changed from starting to crashed
philipp-spiess commented 12 years ago

Whops, looks like you already fixed the bug, I wonder why it doesn't load me the latest Flowdock Client?

philipp-spiess commented 12 years ago

Ok, just seems to need a new version on NPM. I'm closin this and sorry for the repost :D

lautis commented 12 years ago

We'll release new npm package tomorrow, probably with looser dependency requirement :)

philipp-spiess commented 12 years ago

+1 :trollface:

philipp-spiess commented 12 years ago

just want to point out that everything works fine now <3