xmppjs / hubot-xmpp

XMPP adapter for Hubot
180 stars 103 forks source link

hubot xmpp client does not get online #34

Closed shahnvaibhav closed 10 years ago

shahnvaibhav commented 11 years ago

xmpp adapter loads fine. this is the info message after I run hubot -a xmpp -n my-bot

INFO { username: 'jabber.hubot@xxx.net', password: 'password', host: 'jabber.xxx.net', port: '5223', rooms: [ { jid: 'dev@conference.xxx.net', password: false } ], keepaliveInterval: 30000, legacySSL: '1', preferredSaslMechanism: undefined }

and there are no messages beyond this point. I am clueless to from where should I start debugging. Please help.

shahnvaibhav commented 11 years ago

to add - I was expecting this message to show up - ...INFO Hubot XMPP client online

But the above message never shows up.

markstory commented 11 years ago

Sounds like the client is not getting online then. I would check in your jabber server logs to see if there are any failed login attempts or anything like that.

shahnvaibhav commented 11 years ago

thanks but there is no change in the log files on the jabber server side. Looks like connection.js from node-xmpp uses TLS by default. It seems to get stuck in the TLS handshake. Do I need to pass any TLS credentials?

here is my env

export HUBOT_XMPP_USERNAME="jabber.hubot@xxx" export HUBOT_XMPP_PASSWORD="yyyy" export HUBOT_XMPP_ROOMS="dsdev@conference.xxx" export REDISTOGO_URL=redis://... bin/hubot -a xmpp my-bot

markstory commented 11 years ago

I'm not sure, I've not used TLS based connections before, the various jabber servers I connect to don't use TLS.