github/github-services — pull request #912 by lloydwatkin (2014-08-13 18:54:59+00:00)
Title: XMPP MUC

I've improved the manual entry (proper headers).

Additionally I've added additional information to the error log to see what is going on when it fails. As can be seen from the log below the service is connecting to the MUC successfully (and I can confirm this from watching the chat room itself).

The bot however is disconnecting before it has a chance to send a message. Github is reporting an 'Unknown Error' so in order to dig into this I need more information.

Cheers, Lloyd.

PS If you are about I am happy to jump online and get this corrected ASAP, please email and I will make myself available.

@atmos @kdaigle

```
Aug 13 18:43:57 socket	debug	server.lua: accepted new client connection from 192.30.252.47:40795 to 5222
Aug 13 18:43:57 c2s3231080	info	Client connected
Aug 13 18:43:57 c2s3231080	debug	Client sent opening to surevine.com
Aug 13 18:43:57 c2s3231080	debug	Sent reply to client
Aug 13 18:43:57 c2s3231080	debug	Received[c2s_unauthed]:
Aug 13 18:43:57 socket	debug	server.lua: we need to do tls, but delaying until send buffer empty
Aug 13 18:43:57 c2s3231080	debug	TLS negotiation started for c2s_unauthed...
Aug 13 18:43:57 socket	debug	server.lua: attempting to start tls on tcp{client}: 0x2a44308
Aug 13 18:43:57 socket	debug	server.lua: ssl handshake done
Aug 13 18:43:57 c2s3231080	debug	Client sent opening to surevine.com
Aug 13 18:43:57 c2s3231080	debug	Sent reply to client
Aug 13 18:43:57 c2s3231080	debug	Received[c2s_unauthed]:
Aug 13 18:43:57 c2s3231080	info	Authenticated as test@surevine.com
Aug 13 18:43:57 surevine.com:saslauth	debug	sasl reply:
Aug 13 18:43:57 c2s36f3180	debug	Received[c2s]:
Aug 13 18:43:57 c2s3231080	debug	Client sent opening to surevine.com
Aug 13 18:43:57 c2s3231080	debug	Sent reply to client
Aug 13 18:43:57 c2s3231080	debug	Received[c2s]:
Aug 13 18:43:57 rostermanager	debug	load_roster: asked for: test@surevine.com
Aug 13 18:43:57 c2s3231080	debug	Resource bound: test@surevine.com/cf62c802-4ba5-4e3f-ac7d-57fd2f4f575b
Aug 13 18:43:57 c2s3231080	debug	Received[c2s]:
Aug 13 18:43:58 c2s2f1cd40	debug	Received[c2s]:
Aug 13 18:43:58 c2s3231080	debug	Received[c2s]:
Aug 13 18:43:58 mod_muc	debug	room: test@chat.surevine.com, current_nick: nil, stanza:
Aug 13 18:43:58 mod_muc	debug	test@surevine.com/cf62c802-4ba5-4e3f-ac7d-57fd2f4f575b joining as test@chat.surevine.com/github
Aug 13 18:43:58 c2s27cfe60	debug	Received[c2s]:
Aug 13 18:43:58 c2s3231080	debug	Received
Aug 13 18:43:58 c2s3231080	info	c2s stream for test@surevine.com/cf62c802-4ba5-4e3f-ac7d-57fd2f4f575b closed: session closed
Aug 13 18:43:58 c2s3231080	debug	Destroying session for test@surevine.com/cf62c802-4ba5-4e3f-ac7d-57fd2f4f575b (test@surevine.com)
Aug 13 18:43:58 mod_muc	debug	room: test@chat.surevine.com, current_nick: test@chat.surevine.com/github, stanza:
Aug 13 18:43:58 mod_muc	debug	test@chat.surevine.com/github leaving test@chat.surevine.com
Aug 13 18:43:58 c2s3231080	info	Client disconnected: connection closed
Aug 13 18:43:58 c2s3231080	debug	Destroying session for (unknown) ((unknown)@(unknown))
Aug 13 18:43:58 socket	debug	server.lua: closed client handler and removed socket from list
```