Closed krutaw closed 8 years ago
[Mon Jul 25 2016 15:05:24 GMT-0400 (EDT)] ERROR TypeError: uuid.v4 is not a function
Seems like a key part of the problem. You'll need to re-install your dependencies.
@markstory By that, I'm assuming you mean uuid, yes? So removing the UUID node_module, and then reinstalling it using 'npm install uuid'? I ask because indeed I had tried that and even went to the effort of testing to make sure that the uuid.v4() function was working by creating a simple coffeescript that looked like thus:
robot.hear /^get_uuid$/i, (msg) -> myuuid = uuid.v4() msg.send myuuid
This, of course, worked repeatedly. I think the concern here is that the error doesn't actually happen until adding a second chatroom to join and enabling the 'HUBOT_XMPP_UUID_ON_JOIN' variable.
Thoughts?
I see the mistake in the code now. I'll get that fixed.
0.2.4 tagged and published.
@markstory NICE. Thanks again!
After updating to 0.2.3 to include the functionality mentioned in #104, I noticed that after enabling the "HUBOT_XMPP_UUID_ON_JOIN" environment variable (regardless of value - I tried both true and false), I receive the following error when adding hubot to multiple chatrooms:
After the error occurs, the hubot connection to Jabber is severed and the process of reconnecting starts (to the same result.) Commenting out the environment variable in my .env file did allow me to add Hubot to multiple chat rooms in the 0.2.3 version.
I should point out that a single chat room works without error.