-
Notifications
You must be signed in to change notification settings - Fork 101
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
Hubot connects (and joins rooms) but acts deaf #1
Comments
Interesting, I've not hit that issue on my jabber network. As for a place to start debugging, the adapter's run() method binds to the message events. It might be worthwhile sprinkling in some console.log to see what message stanza's are coming in |
I'm having the same/similar trouble on my Openfire server. Hubot connects, joins the room, but doesn't respond to messages (even directly) (Shell works fine). Happy to help debug, but like caos, I too am a newbie. |
If I understand correctly, putting "console.log(message)" after "message = body.getText()" in the "readMessage: (stanza) =>" function shows that hubot is listening to the chat (it prints out all messages sent to chat). |
Yeah, you'd want to see why the bot isn't replying. There are a number of checks that reject messages, one of those must be catching the commands. Knowing what the incoming stanzas, and the config looks like might help. |
The stanza looks like (minus the opening and closing quotes): " body contains: "hubot image me firefly" not sure what config you wanted? " |
direct IM stanza looks like: " and the body is "hubot image me bender" |
I'm seeing this too against ejabberd. Unlike Shell or IRC, which I've tested with the same configuration, chat room messages aren't being logged to the console as they come in (i.e., Hubot overhearing/parsing every line) with the XMPP adapter. |
Did a bit of debugging (somewhat newbie territory here as well) and determined that For example, I can confirm that every message in the room is seen, and is debug-outputted from The Nothing is attempted to be sent, as a So unless the XMPP adapter isn't fulfilling its API contract with something up the chain, I'm not sure what's going on here? |
Agreed; I came to the same conclusions this morning when I did some testing. |
Also FWIW, Redis reports a user entry consisting of |
Oh, just noticed that an issue was open. See my pull request. It fixes this. The problem is this module's dependency on hubot. |
I took a look at the stanza's my jabber server sends, and they are surprisingly similar. You should see messages at least get as far as https://github.com/markstory/hubot-xmpp/blob/master/src/xmpp.coffee#L92, That's the final check to reject a message. I don't think any of the other cases should apply based on the stanza's you pasted earlier. |
Tested. The pull from @andyfowler worked :) |
Ok, so @andyfowler's patch & hubot-xmpp 0.0.4 solve the problem, but now we're back with this from the Hubot v1 days: hubotio/hubot#186 |
@incanus I'm not having that problem.. hubot 2.0.5 |
I was able to fix the |
Wow.. that was quick. I step away for a day, and when I get back the problem is fixed. Thanks @andyfowler! I can confirm that the xmpp adapter now works on my ejabberd instance via group chat. There appears to be a parsing error for direct chat, but I will try and dig into that and file an issue/pull request as appropriate. |
Show placeholder password in info logs. Fixes #1
I tried setting up Hubot this evening against my companies ejabberd xmpp system. Hubot seems to connect and joins the prescribed MUC , however it does not list as being online/available, nor does it respond to any commands via the group chat or when prompted directly. I am able to run with the shell adapter and get expected responses, so the issue appears isolated to the xmpp adapter.
Would be happy to help debug the problem, but I am a nodejs newbie, so I am not sure of even where to start.
The text was updated successfully, but these errors were encountered: