flowdock / hubot-flowdock

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

v0.2.3 explodes with "Object #<Object> has no method 'isArray'" #5

Closed matiaskorhonen closed 12 years ago

matiaskorhonen commented 12 years ago

Version 0.2.2 works.

The relevant log segment:

2012-03-03T09:43:10+00:00 app[app.1]: /app/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:60
2012-03-03T09:43:10+00:00 app[app.1]:       if (!util.isArray(flows)) flows = [flows];
2012-03-03T09:43:10+00:00 app[app.1]:                 ^
2012-03-03T09:43:10+00:00 app[app.1]: TypeError: Object #<Object> has no method 'isArray'
2012-03-03T09:43:10+00:00 app[app.1]:     at Session.stream (/app/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:60:17)
2012-03-03T09:43:10+00:00 app[app.1]:     at Flowdock.connect (/app/node_modules/hubot-flowdock/src/flowdock.coffee:54:30)
2012-03-03T09:43:10+00:00 app[app.1]:     at /app/node_modules/hubot-flowdock/src/flowdock.coffee:93:22
2012-03-03T09:43:10+00:00 app[app.1]:     at Request._callback (/app/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:54:16)
2012-03-03T09:43:10+00:00 app[app.1]:     at Request.callback (/app/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:118:22)
2012-03-03T09:43:10+00:00 app[app.1]:     at Request.<anonymous> (/app/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:459:16)
2012-03-03T09:43:10+00:00 app[app.1]:     at Request.emit (events.js:64:17)
2012-03-03T09:43:10+00:00 app[app.1]:     at IncomingMessage.<anonymous> (/app/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:418:14)
2012-03-03T09:43:10+00:00 app[app.1]:     at IncomingMessage.emit (events.js:81:20)
2012-03-03T09:43:10+00:00 app[app.1]:     at HTTPParser.onMessageComplete (http.js:133:23)
2012-03-03T09:43:11+00:00 heroku[app.1]: Process exited with status 1
2012-03-03T09:43:11+00:00 heroku[app.1]: State changed from up to crashed
lautis commented 12 years ago

Thanks for the report. util.isArray isn't apparently available in Node 0.4. Fixed in flowdock/node-flowdock@8d33f0f1ac213348927e70a3d570cd29a7146539.