atmos / hubot-gtalk

GTalk adapter for Hubot
MIT License
14 stars 6 forks source link

ERROR Cannot load adapter gtalk - TypeError: Cannot read property 'prototype' of undefined #14

Closed dlinsin closed 12 years ago

dlinsin commented 12 years ago

This started to show up recently on Heroku:

2012-08-06T07:27:59+00:00 heroku[slugc]: Slug compilation finished
2012-08-06T07:28:03+00:00 heroku[app.1]: Starting process with command `bin/hubot -a gtalk -n Hubot`
2012-08-06T07:28:04+00:00 app[app.1]: bin/hubot: 3: npm: not found
2012-08-06T07:28:04+00:00 heroku[app.1]: State changed from starting to up
2012-08-06T07:28:05+00:00 app[app.1]: Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
2012-08-06T07:28:05+00:00 app[app.1]: [Mon Aug 06 2012 07:28:05 GMT+0000 (UTC)] ERROR Cannot load adapter gtalk - TypeError: Cannot read property 'prototype' of undefined
2012-08-06T07:28:05+00:00 app[app.1]: TypeError: Cannot call method 'on' of null
2012-08-06T07:28:05+00:00 app[app.1]:     at Module._compile (module.js:446:26)
2012-08-06T07:28:05+00:00 app[app.1]:     at Object.<anonymous> (/app/node_modules/hubot/bin/hubot:105:19)
2012-08-06T07:28:05+00:00 app[app.1]:     at Object.<anonymous> (/app/node_modules/hubot/bin/hubot:109:4)
2012-08-06T07:28:05+00:00 app[app.1]:     at /app/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:177:29
2012-08-06T07:28:05+00:00 app[app.1]:     at Object.run (/app/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25)
2012-08-06T07:28:05+00:00 app[app.1]:     at /app/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:152:18
2012-08-06T07:28:05+00:00 app[app.1]:     at [object Object].<anonymous> (fs.js:123:5)
2012-08-06T07:28:05+00:00 app[app.1]:     at [object Object].emit (events.js:64:17)
2012-08-06T07:28:05+00:00 app[app.1]:     at Object.oncomplete (fs.js:1190:12)
2012-08-06T07:28:06+00:00 heroku[app.1]: Process exited with status 1
2012-08-06T07:28:06+00:00 heroku[app.1]: State changed from up to crashed

I'm running hubot 2.2.0 with the following package.json:

{
  "name":        "hosted-hubot",
  "version":     "2.2.0",
  "author":      "GitHub Inc.",
  "keywords":    "github hubot campfire bot",
  "description": "A simple helpful Robot for your Company",
  "licenses":     [{
    "type":       "MIT",
    "url":        "http://github.com/github/hubot/raw/master/LICENSE"
  }],

  "repository" : {
    "type": "git",
    "url":  "https://github.com/github/hubot.git"
  },

  "dependencies": {
    "date-utils": ">=1.2.5",
    "hubot-gtalk": ">= 0.0.1",
    "optparse": "1.0.3",
    "nodepie": "0.4.0",
    "htmlparser": "1.7.0",
    "hubot": "2.2.0",
    "hubot-scripts": ">=2.0.8"
  },

  "engines": {
    "node": "0.6.x",
    "npm": "1.0.x"
  }
}
sapegin commented 12 years ago

You have to update Hubot, because current version of hubot-gtalk isn’t compatible with Hubot <2.3.

dlinsin commented 12 years ago

Using Hubot 2.3.2 leads to the following error:

XMPP authentication failure

npisenti commented 12 years ago

FWIW, I was getting the same authentication failure as @dlinsin , using a gmail username + password. When I changed HUBOT_GTALK_USERNAME to username@gmail.com, the authentication problems went away!

sapegin commented 12 years ago

@npisenti thank you. Clarified installations instructions a bit.