Skip to content

Instantly share code, notes, and snippets.

@cburgmer
Created February 1, 2013 21:20
Show Gist options
  • Save cburgmer/4694226 to your computer and use it in GitHub Desktop.
Save cburgmer/4694226 to your computer and use it in GitHub Desktop.
$ ruby failing.rb -D
D, [2013-02-01T21:20:06.591576 #91923] DEBUG -- : USING JID: alice@localhost
D, [2013-02-01T21:20:06.591841 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream/client.rb:11:in `start') <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
D, [2013-02-01T21:20:06.592978 #91923] DEBUG -- : RECEIVING (stream) <stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="2990861908" from="localhost" version="1.0" lang="en"/>
D, [2013-02-01T21:20:06.593362 #91923] DEBUG -- : RECEIVING (features) <stream:features xmlns:stream="http://etherx.jabber.org/streams">
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<mechanism>PLAIN</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>SCRAM-SHA-1</mechanism>
</mechanisms>
<c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="yy7di5kE0syuCXOQTXNBTclpNTo="/>
<register xmlns="http://jabber.org/features/iq-register"/>
</stream:features>
D, [2013-02-01T21:20:06.593848 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream/features/sasl.rb:101:in `authenticate') <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5"/>
D, [2013-02-01T21:20:06.594776 #91923] DEBUG -- : RECEIVING (challenge) <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">bm9uY2U9IjI4MTM0Mjc0MTciLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
D, [2013-02-01T21:20:06.594938 #91923] DEBUG -- : CHALLENGE DECODE: {"nonce"=>"2813427417", "qop"=>"auth", "charset"=>"utf-8", "algorithm"=>"md5-sess"}
D, [2013-02-01T21:20:06.595107 #91923] DEBUG -- : CHALLENGE RESPONSE: {:nonce=>"\"2813427417\"", :charset=>"utf-8", :username=>"\"alice\"", :realm=>"\"localhost\"", :cnonce=>"\"daa10c89084b67462d02228b9f5e7680\"", :nc=>"00000001", :qop=>"auth", :"digest-uri"=>"\"xmpp/localhost\"", :response=>"99042fb71b3f4b6c68f4f6f03408ebbc"}
D, [2013-02-01T21:20:06.595155 #91923] DEBUG -- : CH RESP TXT: nonce="2813427417",charset=utf-8,username="alice",realm="localhost",cnonce="daa10c89084b67462d02228b9f5e7680",nc=00000001,qop=auth,digest-uri="xmpp/localhost",response=99042fb71b3f4b6c68f4f6f03408ebbc
D, [2013-02-01T21:20:06.595375 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream/features/sasl.rb:167:in `respond') <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">bm9uY2U9IjI4MTM0Mjc0MTciLGNoYXJzZXQ9dXRmLTgsdXNlcm5hbWU9ImFsaWNlIixyZWFsbT0ibG9jYWxob3N0Iixjbm9uY2U9ImRhYTEwYzg5MDg0YjY3NDYyZDAyMjI4YjlmNWU3NjgwIixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2xvY2FsaG9zdCIscmVzcG9uc2U9OTkwNDJmYjcxYjNmNGI2YzY4ZjRmNmYwMzQwOGViYmM=</response>
D, [2013-02-01T21:20:06.630580 #91923] DEBUG -- : RECEIVING (challenge) <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1lODA3ZmRiMjg4NzQ4NGVlZjhiNWZhNjdhZTE2NGNiZQ==</challenge>
D, [2013-02-01T21:20:06.630782 #91923] DEBUG -- : CHALLENGE DECODE: {"rspauth"=>"e807fdb2887484eef8b5fa67ae164cbe"}
D, [2013-02-01T21:20:06.631011 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream/features/sasl.rb:167:in `respond') <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
D, [2013-02-01T21:20:06.958020 #91923] DEBUG -- : RECEIVING (success) <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
D, [2013-02-01T21:20:06.958361 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream/client.rb:11:in `start') <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
D, [2013-02-01T21:20:07.010683 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream.rb:250:in `stop') <stream:error><xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
PP: internal error, state == PI
D, [2013-02-01T21:20:07.010954 #91923] DEBUG -- : RECEIVING (stream) <stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="258447603" from="localhost" version="1.0" lang="en"/>
D, [2013-02-01T21:20:07.011240 #91923] DEBUG -- : RECEIVING (features) <stream:features xmlns:stream="http://etherx.jabber.org/streams">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>
<session xmlns="urn:ietf:params:xml:ns:xmpp-session"/>
<c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="yy7di5kE0syuCXOQTXNBTclpNTo="/>
<register xmlns="http://jabber.org/features/iq-register"/>
</stream:features>
D, [2013-02-01T21:20:07.011587 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream/features/resource.rb:39:in `bind') <iq type="set" id="blather0002">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>
</iq>
D, [2013-02-01T21:20:07.139302 #91923] DEBUG -- : RECEIVING (end) <stream:end xmlns:stream="http://etherx.jabber.org/streams"/>
D, [2013-02-01T21:20:07.139405 #91923] DEBUG -- : SENDING: (/Users/cburgmer/.rvm/gems/ruby-1.9.3-p327/gems/blather-0.8.2/lib/blather/stream.rb:250:in `stop') </stream:stream>
require 'rubygems'
require 'blather/client'
jid = 'alice@localhost'
password = "secr3t"
setup(jid, password, "localhost")
source :rubygems
gem "blather", "= 0.8.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment