Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with latest Hubot version #19

Closed
svperfecta opened this issue Mar 25, 2012 · 21 comments
Closed

Errors with latest Hubot version #19

svperfecta opened this issue Mar 25, 2012 · 21 comments

Comments

@svperfecta
Copy link
Contributor

Hi -

I'm receiving a strange error about node-stringprep. Google show this issue isn't new, though it appears to have been fixed in Issue #1 (#1). This is a new hubot I built it this evening using two sets of directions.

The first:

https://github.com/github/hubot/blob/master/src/templates/README.md

The second:

https://github.com/hipchat/hubot-hipchat

Here's the corresponding section of my logs:

 $ heroku logs
 ...
 2012-03-25T22:42:44+00:00 heroku[web.1]: State changed from created to starting
 2012-03-25T22:42:45+00:00 heroku[slugc]: Slug compilation finished
 2012-03-25T22:42:51+00:00 heroku[web.1]: Starting process with command `bin/hubot -a hipchat -n Charlie`
 2012-03-25T22:42:51+00:00 app[web.1]: bin/hubot: 3: npm: not found
 2012-03-25T22:42:51+00:00 app[web.1]: Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
 ...

Here's the relevant portion of my package.json:

"hubot-hipchat": ">= 1.0.3",
"hubot": "2.1.4",
"hubot-scripts": ">=2.0.4",
"optparse": "1.0.3"

Here's my heroku config (config masked to protect the innocent):

$ heroku config
HUBOT_HIPCHAT_JID      => 12345_12345@chat.hipchat.com
HUBOT_HIPCHAT_NAME     => Exact Name
HUBOT_HIPCHAT_PASSWORD => password
PATH                   => bin:node_modules/.bin:/usr/local/bin:/usr/bin:/bin
REDISTOGO_URL          => redis://redistogo:hash@dogfish.redistogo.com:9659/

I'd appreciate any thoughts or advice.

@svperfecta
Copy link
Contributor Author

Note: I am able to successfully get past this error locally on my Mac (10.7) by installing icu4c and linking it. If I run the bot in debug mode it shows that it successfully receives messages. However, it does not respond to messages.

@powdahound
Copy link
Contributor

I get the same error locally and on Heroku but the bot still works as expected. Are you sure your HUBOT_HIPCHAT_NAME and -n argument to bin/hubot are in sync? (The later should just be the first name).

@svperfecta
Copy link
Contributor Author

@powdahound - Thanks very much for the response! Here's how I have these set:

bin/hubot -a hipchat -n Charlie
export HUBOT_HIPCHAT_NAME="Charlie Bot"

In Hipchat the fullname field is

Charlie Bot

If I run the bot in DEBUG mode I can see it receiving XMPP traffic. Strangely, whether addressed in a room using @Robot or direct it won't answer any requests. I'll do some additional tests tonight, perhaps trying a different name and let you know what I find.

@svperfecta
Copy link
Contributor Author

Here's my debug output:

IN > <message to='20443_94414@chat.hipchat.com/none' type='groupchat' from='20443_genexp@conf.hipchat.com/Brian Corrigan'><body>@charlie ping</body><x xmlns='http://hipchat.com'><sender>20443_94412@chat.hipchat.com</sender></x></message>
OUT >  
IN > <message to='20443_94414@chat.hipchat.com' type='chat' from='20443_94412@chat.hipchat.com/web'><body>ping</body><inactive xmlns='http://jabber.org/protocol/chatstates'/></message>
OUT >  

Strange that out> is empty in both cases. I gave the user ADMIN privleges in hip chat, still nothing.

@powdahound
Copy link
Contributor

Odd... maybe it is something related to stringprep but I'm not sure. Probably worth putting some debug logging in the code if you have time to mess around with it. I'm much too busy at the moment. :(

Btw admin privileges in HipChat doesn't change anything as far as basic chat functionality is concerned.

@tadeumaia
Copy link

I'm having the same issue, what I need to do to rebuild my bot with this latest fix?

@powdahound
Copy link
Contributor

Just make sure you have the latest version of hubot and hubot-hipchat.

@tadeumaia
Copy link

aparently i'm using the last version and nothing. (btw, hosting at heroku)

{
"name": "hosted-hubot",
"version": "2.1.4",
"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" : "http://github.com/github/hubot.git"
},

"dependencies": {
"hubot": "2.1.4",
"hubot-hipchat": ">= 1.0.3",
"hubot-scripts": ">=2.0.4",
"optparse": "1.0.3"
}
}

@tadeumaia
Copy link

ok, fixed by adding "hubot-hipchat": "git://github.com/hipchat/hubot-hipchat.git#master".

thanks

@svperfecta
Copy link
Contributor Author

I had to do the same thing. I wasn't familiar enough about NPM to suggest
a fix, maybe incrementing the version? Interesting

On Mon, Apr 9, 2012 at 3:45 PM, Tadeu <
reply@reply.github.com

wrote:

ok, fixed by adding "hubot-hipchat": "git://
github.com/hipchat/hubot-hipchat.git#master".

thanks


Reply to this email directly or view it on GitHub:
#19 (comment)

@tadeumaia
Copy link

Maybe it needs a new deploy to npm? (not familiar either)

@powdahound
Copy link
Contributor

That's probably right. I always forget about npm. Will try to get it updated soon (I think I'm the owner of this package now...).

@powdahound
Copy link
Contributor

1.0.4 pushed to npm - try that out.

@bhardin
Copy link

bhardin commented Apr 24, 2012

I am using 1.0.4 and still get the following error:

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep

It doesn't look like it is causing problems, but couldn't find a good answer or reason as to why the error is coming up. I'm hosted on Heroku and this is a heroku error.

@tkrpata
Copy link

tkrpata commented Apr 25, 2012

Having the same problem here
Cannot load StringPrep-0.1.0 bindings. You may need to npm install node-stringprep'`
Seems to be causing Hubot to not see chat room messages. It does see messages in 1-1 chat, so for example "help" in a private chat responds correctly, but "@botName help" in a chat room gets no response.

EDIT: turns out the error was a red herring, I turned on debug mode and I'm actually getting a jid-malformed error back.

@powdahound
Copy link
Contributor

Yeah, the node-stringprep error does not actually cause trouble. If you're getting an error about an invalid JID it sounds like you haven't set your HUBOT_HIPCHAT_NAME properly. Make sure it matches the name on the account exactly.

@rafael
Copy link

rafael commented Oct 12, 2012

I'm getting the same error. With debug mode I'm seeing all the messages but the bot is deaf. It doesn't respond...

@powdahound
Copy link
Contributor

I suspect this was actually caused by #49

@andrusha
Copy link

andrusha commented Feb 1, 2013

👍 I too have missing node-stringprep dependency and it just doesn't want to install on mac os neither on heroku

@powdahound
Copy link
Contributor

The node-stringprep warning isn't known to be the cause of any issues. If you're having trouble, make sure to follow this repo's README to the letter. You could also try it with hubot 2.4.5 which is the latest I've tested with. Not sure if they broke anything in 2.4.6.

@andrusha
Copy link

andrusha commented Feb 1, 2013

Thanks, sure, it doesn't seem to cause any trouble right now, but I wanted to be sure that there would be no problems with it in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants