flowdock / hubot-flowdock

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

TypeError: Object #<Flowdock> has no method 'emit' #8

Closed mmccroskey closed 12 years ago

mmccroskey commented 12 years ago

I'm trying to set up Hubot on Heroku, and Heroku crashes on launch every time with the error above.

I've followed these instructions up until the parts about Campfire: https://github.com/github/hubot/wiki/Deploying-Hubot-onto-Heroku

I then followed these instructions: https://github.com/github/hubot/wiki/Adapter:-Flowdock

I've tried making sure that I'm using the latest version of the adapter (0.2.5) by specifying as much in my package.json, rather than using the '>= 0.0.1' specified in the instructions linked above.

Here's my full trace:

TypeError: Object #<Flowdock> has no method 'emit'
     at Flowdock.run (/app/node_modules/hubot-flowdock/src/flowdock.coffee:94:19)
     at Robot.run (/app/node_modules/hubot/src/robot.coffee:225:27)
     at Object.<anonymous> (/app/node_modules/hubot/bin/hubot:105:11)
     at Object.<anonymous> (/app/node_modules/hubot/bin/hubot:108:4)
     at Module._compile (module.js:404:26)
     at Object.run (/app/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:66:25)
     at /app/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:147:29
     at /app/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:115:19
     at [object Object].<anonymous> (fs.js:107:5)
     at [object Object].emit (events.js:61:17)

Any help would be appreciated. Thanks!

arttu commented 12 years ago

Hi @mmccroskey,

I'm not able to reproduce the problem with hubot 2.2.0 + hubot-flowdock 0.2.5 + node.js 0.6.10.

  1. Are there any other errors before the Flowdock emit error? Eg. missing packages during the install etc.
  2. Can you log into Flowdock via browser using the credentials you configured to Heroku?

Br, -Arttu