From: Gábor L. <gop...@gm...> - 2013-01-04 16:01:24
|
C:\Python26\lib\xmpp\auth.py:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha,base64,random,dispatcher,re C:\Python26\lib\xmpp\auth.py:26: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 Invalid debugflag given: always Invalid debugflag given: nodebuilder DEBUG: DEBUG: Debug created for C:\Python26\lib\xmpp\client.py DEBUG: flags defined: always,nodebuilder DEBUG: socket start Plugging <xmpp.transports.TCPsocket instance at 0x0000000002770088> into <xmpp.client.Client instance at 0x000000000273EC08> DEBUG: socket warn An error occurred while looking up _xmpp-client._tcp.jabber.digicpictures.local DEBUG: socket start Successfully connected to remote host ('jabber.digicpictures.local', 5222) DEBUG: dispatcher start Plugging <xmpp.dispatcher.Dispatcher instance at 0x0000000002770908> into <xmpp.client.Client instance at 0x000000000273EC08> DEBUG: dispatcher info Registering namespace "unknown" DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams" DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering namespace "jabber:client" DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "iq" as <class 'xmpp.protocol.Iq'>(jabber:client) DEBUG: dispatcher info Registering protocol "presence" as <class 'xmpp.protocol.Presence'>(jabber:client) DEBUG: dispatcher info Registering protocol "message" as <class 'xmpp.protocol.Message'>(jabber:client) DEBUG: dispatcher info Registering handler <bound method Dispatcher.streamErrorHandler of <xmpp.dispatcher.Dispatcher instance at 0x0000000002770908>> for "error" type-> ns->(http://etherx.jabber.org/streams) DEBUG: dispatcher warn Registering protocol "error" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: socket sent <?xml version='1.0'?> <stream:stream xmlns="jabber:client" to="jabber.digicpictures.local" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" > DEBUG: socket got <?xml version='1.0'?> <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='jabber.digicpictures.local' version='1.0' id='t3lj0qok3kpuas0ft7p7lw199knbc866bspbiewl'> DEBUG: socket got <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> </mechanisms> <auth xmlns='http://jabber.org/features/iq-auth'/> <register xmlns='http://jabber.org/features/iq-register'/> </stream:features> DEBUG: dispatcher warn Unknown stanza: features DEBUG: dispatcher ok Dispatching unknown stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-sasl', u'http://jabber.org/features/iq-auth', u'http://jabber.org/features/iq-register'] id->None DEBUG: tls start Plugging <xmpp.transports.TLS instance at 0x00000000027735C8> into <xmpp.client.Client instance at 0x000000000273EC08> DEBUG: tls warn TLS unsupported by remote server. DEBUG: socket sent <iq to="jabber.digicpictures.local" type="set" id="1"> <query xmlns="jabber:iq:register"> <username>teszt</username> <password>teszt</password> </query> </iq> DEBUG: dispatcher wait Waiting for ID:1 with timeout 25... DEBUG: socket got <iq xmlns='jabber:client' id='1' type='result'/> DEBUG: dispatcher ok Got jabber:client/iq stanza DEBUG: dispatcher ok Dispatching iq stanza with type->result props->[] id->1 DEBUG: dispatcher ok Expected stanza arrived! DEBUG: sasl start Plugging <xmpp.auth.SASL instance at 0x0000000002773988> into <xmpp.client.Client instance at 0x000000000273EC08> DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x0000000002773988>> for "challenge" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-sasl" DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering protocol "challenge" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x0000000002773988>> for "failure" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering protocol "failure" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x0000000002773988>> for "success" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering protocol "success" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: socket sent <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5" /> DEBUG: socket got <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cmVhbG09ImphYmJlci5kaWdpY3BpY3R1cmVzLmxvY2FsIiwgbm9uY2U9Ii95WVAyemtkQjF2Q2FYSnVtL0RRWnc9PSIsIHFvcD0iYXV0aCIsIGNoYXJzZXQ9dXRmLTgsIGFsZ29yaXRobT1tZDUtc2Vzcw==</challenge> DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/challenge stanza DEBUG: dispatcher ok Dispatching challenge stanza with type-> props->[] id->None DEBUG: sasl ok Got challenge:realm="jabber.digicpictures.local", nonce="/yYP2zkdB1vCaXJum/DQZw==", qop="auth", charset=utf-8, algorithm=md5-sess DEBUG: socket sent <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Y2hhcnNldD11dGYtOCx1c2VybmFtZT0idGVzenQiLHJlYWxtPSJqYWJiZXIuZGlnaWNwaWN0dXJlcy5sb2NhbCIsbm9uY2U9Ii95WVAyemtkQjF2Q2FYSnVtL0RRWnc9PSIsbmM9MDAwMDAwMDEsY25vbmNlPSJiODNhOGNmZDM2OWE0ZDUwMGRlNGE1MWRlY2YxODNkOGNhYWE0NjVmNDU2MmEyZmQ4IixkaWdlc3QtdXJpPSJ4bXBwL2phYmJlci5kaWdpY3BpY3R1cmVzLmxvY2FsIixyZXNwb25zZT1hOTUwODAwM2RkODc4MDA0ZDYyNjRjNGE3ZWYxYTQ2Mixxb3A9YXV0aA==</response> DEBUG: socket got <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD1kY2QyNjlmYmE0ZTMxNTJlYmVkMzM2MGQwNjNmMDY3Zg==</challenge> DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/challenge stanza DEBUG: dispatcher ok Dispatching challenge stanza with type-> props->[] id->None DEBUG: sasl ok Got challenge:rspauth=dcd269fba4e3152ebed3360d063f067f DEBUG: socket sent <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /> DEBUG: socket got <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/> DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/success stanza DEBUG: dispatcher ok Dispatching success stanza with type-> props->[] id->None DEBUG: sasl ok Successfully authenticated with remote server. DEBUG: dispatcher stop Plugging <xmpp.dispatcher.Dispatcher instance at 0x0000000002770908> out of <xmpp.client.Client instance at 0x000000000273EC08>. DEBUG: dispatcher start Plugging <xmpp.dispatcher.Dispatcher instance at 0x0000000002773B88> into <xmpp.client.Client instance at 0x000000000273EC08> DEBUG: dispatcher info Registering namespace "unknown" DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams" DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering namespace "jabber:client" DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "iq" as <class 'xmpp.protocol.Iq'>(jabber:client) DEBUG: dispatcher info Registering protocol "presence" as <class 'xmpp.protocol.Presence'>(jabber:client) DEBUG: dispatcher info Registering protocol "message" as <class 'xmpp.protocol.Message'>(jabber:client) DEBUG: dispatcher info Registering handler <bound method Dispatcher.streamErrorHandler of <xmpp.dispatcher.Dispatcher instance at 0x0000000002773B88>> for "error" type-> ns->(http://etherx.jabber.org/streams) DEBUG: dispatcher warn Registering protocol "error" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: socket sent <?xml version='1.0'?> <stream:stream xmlns="jabber:client" to="jabber.digicpictures.local" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" > DEBUG: bind start Plugging <xmpp.auth.Bind instance at 0x0000000002773C48> into <xmpp.client.Client instance at 0x000000000273EC08> DEBUG: dispatcher info Registering handler <bound method Bind.FeaturesHandler of <xmpp.auth.Bind instance at 0x0000000002773C48>> for "features" type-> ns->(http://etherx.jabber.org/streams) DEBUG: dispatcher warn Registering protocol "features" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: socket got <?xml version='1.0'?> <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='jabber.digicpictures.local' version='1.0' id='t3lj0qok3kpuas0ft7p7lw199knbc866bspbiewl'> DEBUG: socket got <stream:features xmlns:stream='http://etherx.jabber.org/streams'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <required/> </bind> <unbind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </stream:features> DEBUG: dispatcher ok Got http://etherx.jabber.org/streams/features stanza DEBUG: dispatcher ok Dispatching features stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-bind', u'urn:ietf:params:xml:ns:xmpp-session'] id->None DEBUG: socket sent <iq type="set" id="2"> <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" /> </iq> DEBUG: dispatcher wait Waiting for ID:2 with timeout 25... DEBUG: bind error Binding failed: timeout expired. DEBUG: roster start Plugging <xmpp.roster.Roster instance at 0x00000000027766C8> into <xmpp.client.Client instance at 0x000000000273EC08> DEBUG: dispatcher info Registering handler <bound method Roster.RosterIqHandler of <xmpp.roster.Roster instance at 0x00000000027766C8>> for "iq" type->result ns->jabber:iq:roster(jabber:client) DEBUG: dispatcher info Registering handler <bound method Roster.RosterIqHandler of <xmpp.roster.Roster instance at 0x00000000027766C8>> for "iq" type->set ns->jabber:iq:roster(jabber:client) DEBUG: dispatcher info Registering handler <bound method Roster.PresenceHandler of <xmpp.roster.Roster instance at 0x00000000027766C8>> for "presence" type-> ns->(jabber:client) DEBUG: socket sent <iq type="get" id="3"> <query xmlns="jabber:iq:roster" /> </iq> DEBUG: roster start Roster requested from server DEBUG: socket sent <presence id="4" /> DEBUG: socket got <stream:error xmlns:stream='http://etherx.jabber.org/streams'> <not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/> <text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>stanza sent before session start</text> </stream:error> DEBUG: dispatcher ok Got http://etherx.jabber.org/streams/error stanza DEBUG: dispatcher ok Dispatching error stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-streams'] id->None Traceback (most recent call last): File "X:\work\PyDevTeszt\teszt.py", line 154, in <module> roster = cl.getRoster() File "C:\Python26\lib\xmpp\roster.py", line 61, in getRoster while not self.set: self._owner.Process(10) File "C:\Python26\lib\xmpp\dispatcher.py", line 303, in dispatch handler['func'](session,stanza) File "C:\Python26\lib\xmpp\dispatcher.py", line 215, in streamErrorHandler raise exc((name,text)) xmpp.protocol.NotAuthorized: (u'not-authorized', u'stanza sent before session start') |