Open s-nt-s opened 5 years ago
Try with 1.3.2 ^^
@s-nt-s: Any news?
Have you tested with "master"?
It works?
Yes, I have tested with master, and It doesn't work. Is sleekxmpp unmaintained? Should I migrate to another library?
new logs:
$ python3 --version
Python 3.6.9
$ python3 -c "import sleekxmpp; print('sleekxmpp=='+sleekxmpp.__version__)"
sleekxmpp==1.3.3
$ wget https://raw.githubusercontent.com/fritzy/SleekXMPP/develop/examples/echo_client.py
$ python3 echo_client.py --j myfoobotxmpp@suchat.org -p *************** -v
DEBUG Loaded Plugin: RFC 6120: Stream Feature: STARTTLS
DEBUG Loaded Plugin: RFC 6120: Stream Feature: Resource Binding
DEBUG Loaded Plugin: RFC 3920: Stream Feature: Start Session
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval
DEBUG Loaded Plugin: RFC 6120: Stream Feature: SASL
DEBUG Loaded Plugin: XEP-0030: Service Discovery
DEBUG Loaded Plugin: XEP-0004: Data Forms
DEBUG Loaded Plugin: XEP-0131: Stanza Headers and Internet Metadata
DEBUG Loaded Plugin: XEP-0082: XMPP Date and Time Profiles
DEBUG Loaded Plugin: XEP-0060: Publish-Subscribe
DEBUG Loaded Plugin: XEP-0199: XMPP Ping
DEBUG Waiting 2.0550653810790784 seconds before connecting.
DEBUG DNS: Querying SRV records for suchat.org
DEBUG DNS: Querying xmpp.suchat.org for AAAA records.
DEBUG DNS: Querying xmpp.suchat.org for A records.
DEBUG Connecting to [2a01:4f8:c2c:f2f9::1]:5222
DEBUG Event triggered: socket_error
ERROR Could not connect to [2a01:4f8:c2c:f2f9::1]:5222. Socket Error #101: Network is unreachable
DEBUG Waiting 2.357904363850964 seconds before connecting.
DEBUG Connecting to 78.47.75.145:5222
DEBUG Event triggered: connected
DEBUG ==== TRANSITION disconnected -> connected
DEBUG Starting HANDLER THREAD
DEBUG Loading event runner
DEBUG SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG RECV: <stream:stream id="8995026104536303436" version="1.0" xml:lang="en" from="suchat.org">
DEBUG RECV: <stream:features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls></stream:features>
DEBUG SEND (IMMED): <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls>
DEBUG RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
DEBUG Starting TLS
INFO Negotiating TLS
INFO Using SSL version: TLSv1
ERROR CERT: Invalid certificate trust chain.
DEBUG Event triggered: session_end
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION connected -> disconnected
ERROR Can not read from closed socket.
DEBUG reconnecting...
DEBUG connecting...
DEBUG Waiting 2.1347084661888474 seconds before connecting.
DEBUG DNS: Querying xmpps.suchat.org for AAAA records.
DEBUG DNS: Querying xmpps.suchat.org for A records.
DEBUG Connecting to [2a01:4f8:c0c:588b::1]:5222
DEBUG Event triggered: socket_error
ERROR Could not connect to [2a01:4f8:c0c:588b::1]:5222. Socket Error #101: Network is unreachable
DEBUG Waiting 1.8498137045963943 seconds before connecting.
DEBUG Connecting to 88.198.104.83:5222
DEBUG Event triggered: connected
DEBUG ==== TRANSITION disconnected -> connected
DEBUG SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG RECV: <stream:stream id="6769852389691356271" version="1.0" xml:lang="en" from="suchat.org">
DEBUG RECV: <stream:features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls></stream:features>
DEBUG SEND (IMMED): <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls>
DEBUG RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
DEBUG Starting TLS
INFO Negotiating TLS
INFO Using SSL version: TLSv1
ERROR CERT: Invalid certificate trust chain.
DEBUG Event triggered: session_end
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION connected -> disconnected
ERROR Can not read from closed socket.
DEBUG reconnecting...
DEBUG connecting...
DEBUG Waiting 2.4010539221756346 seconds before connecting.
$ python3 echo_client.py --j myfoobotxmpp@xmpp.jp -p *************** -v
DEBUG Loaded Plugin: RFC 6120: Stream Feature: STARTTLS
DEBUG Loaded Plugin: RFC 6120: Stream Feature: Resource Binding
DEBUG Loaded Plugin: RFC 3920: Stream Feature: Start Session
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval
DEBUG Loaded Plugin: RFC 6120: Stream Feature: SASL
DEBUG Loaded Plugin: XEP-0030: Service Discovery
DEBUG Loaded Plugin: XEP-0004: Data Forms
DEBUG Loaded Plugin: XEP-0082: XMPP Date and Time Profiles
DEBUG Loaded Plugin: XEP-0131: Stanza Headers and Internet Metadata
DEBUG Loaded Plugin: XEP-0060: Publish-Subscribe
DEBUG Loaded Plugin: XEP-0199: XMPP Ping
DEBUG Waiting 2.3524091455176004 seconds before connecting.
DEBUG DNS: Querying SRV records for xmpp.jp
DEBUG DNS: Querying tokyo.xmpp.jp for AAAA records.
DEBUG DNS: No AAAA records for tokyo.xmpp.jp
DEBUG DNS: Querying tokyo.xmpp.jp for A records.
DEBUG Connecting to 160.16.212.196:5222
DEBUG Event triggered: connected
DEBUG ==== TRANSITION disconnected -> connected
DEBUG Starting HANDLER THREAD
DEBUG Loading event runner
DEBUG SEND (IMMED): <stream:stream to='xmpp.jp' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG RECV: <stream:stream id="7132754639959951361" version="1.0" xml:lang="en" from="xmpp.jp">
DEBUG RECV: <stream:features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls></stream:features>
DEBUG SEND (IMMED): <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls>
DEBUG RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
DEBUG Starting TLS
INFO Negotiating TLS
INFO Using SSL version: TLSv1
DEBUG CERT: -----BEGIN CERTIFICATE-----
MIIFYDCCBEigAwIBAgISA1uwdGc0wSnafb6OL9USYyYsMA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0yMDAxMDkwNTExMzRaFw0y
MDA0MDgwNTExMzRaMBIxEDAOBgNVBAMTB3htcHAuanAwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQDYiqPB2cUilfYLcbXkyfPdpe27QCnWksS3eSSAjOn1
tpsASXai9mLUA0N0MniXmuin2UhPoB2fPjrkjNNX1pU4oAFVTo8pEjKA/vMC2cd7
qfGOEGXfpwY3hw2VvGyC+Wgw95uhMErE4zfxoGlTplIxbhwkrGJJDjybnnTe6go4
Irp7tRaNjXpROhAGqUd17s4TxteqcKGNksVL1Kz4vQS1hxsMkeq9GSwejxaRqWZv
B96QHXDBtEue/myzble1AzlEDUSpS9g+hO/a95KfIop/6knmgRrH3ptkiwqcecpp
cmC4SK1SFdxSU2vcFcxHOs+vqt/5TC6fWzkGouJ9Nvo3AgMBAAGjggJ2MIICcjAO
BgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwG
A1UdEwEB/wQCMAAwHQYDVR0OBBYEFP6MMqA6RDjXiWxRoRsXoNFLsgs2MB8GA1Ud
IwQYMBaAFKhKamMEfd265tE5t6ZFZe/zqOyhMG8GCCsGAQUFBwEBBGMwYTAuBggr
BgEFBQcwAYYiaHR0cDovL29jc3AuaW50LXgzLmxldHNlbmNyeXB0Lm9yZzAvBggr
BgEFBQcwAoYjaHR0cDovL2NlcnQuaW50LXgzLmxldHNlbmNyeXB0Lm9yZy8wLAYD
VR0RBCUwI4IJKi54bXBwLmpwgg1ndy5sYi54bXBwLmpwggd4bXBwLmpwMEwGA1Ud
IARFMEMwCAYGZ4EMAQIBMDcGCysGAQQBgt8TAQEBMCgwJgYIKwYBBQUHAgEWGmh0
dHA6Ly9jcHMubGV0c2VuY3J5cHQub3JnMIIBBAYKKwYBBAHWeQIEAgSB9QSB8gDw
AHcAsh4FzIuizYogTodm+Su5iiUgZ2va+nDnsklTLe+LkF4AAAFviO36PwAABAMA
SDBGAiEAjomIXYepvJnGzqtwcDHljGCzhwUlYvYzjNWFaBS2DvsCIQDq+FqVSs6j
PfylQdUBLqvPjKVXfDUX+Tgnf/WTx65L9AB1AG9Tdqwx8DEZ2JkApFEV/3cVHBHZ
AsEAKQaNsgiaN9kTAAABb4jt+mMAAAQDAEYwRAIgM+2kj8hsw8ljN3giEx7JUDQX
QUIfTzM0J631LBTn0tQCIGLaXmuh4Pb+MZ0hD4t8J5PAR0X4bQ5THgv4jgScC5W9
MA0GCSqGSIb3DQEBCwUAA4IBAQA4/qepfD2/UKkn4wF3kvjGRpcRO98URxhL1eDu
KwywZKb8vOeRn02VfZ/GjkxA6SLNI5C1IyaGv2Gzf90aIE9VXAP72ufHKFaNMOJZ
ZJ4600He2naCRjLieE029mwP7pKBZx2dwwN6M0X9AP7xCKQUNeYIyUQkgOOVz+T/
aAzH15GZc3LXh+WmNreOeYPXWi8myz2VlyjKkeg+Pgv7bTRnk5cVhqJRbVbJD+++
o/a12W0UcsWfUzXw6SIuZR6hz/DiHiPnEsQsSXYR7xEkcv+NuY0dRkTxur4v8Mk7
IlgdXnSlI3lnh2d2p2Gt0jjw8LHYQ8UgJlzs6Fs4Gca06+5R
-----END CERTIFICATE-----
DEBUG Event triggered: ssl_cert
ERROR Connection error.
ERROR <TagSet object at 0x7fba0dcd80b8 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x7fba0dce3b38 tagSet <TagSet object at 0x7fba0e004f60 tags 0:0:4> encoding iso-8859-1>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1492, in _process
if not self.__read_xml():
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1564, in __read_xml
self.__spawn_event(xml)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1632, in __spawn_event
handler.prerun(stanza_copy)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/handler/callback.py", line 64, in prerun
self.run(payload, True)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/handler/callback.py", line 76, in run
self._pointer(payload)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/features/feature_starttls/starttls.py", line 64, in _handle_starttls_proceed
if self.xmpp.start_tls():
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 889, in start_tls
cert.verify(self._expected_server_name, self._der_cert)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/cert.py", line 134, in verify
cert_names = extract_names(raw_cert)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/cert.py", line 73, in extract_names
asn1Spec=OctetString())[0]
File "/home/shernanz/.local/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 1530, in __call__
'%s not in asn1Spec: %r' % (tagSet, asn1Spec)
pyasn1.error.PyAsn1Error: <TagSet object at 0x7fba0dcd80b8 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x7fba0dce3b38 tagSet <TagSet object at 0x7fba0e004f60 tags 0:0:4> encoding iso-8859-1>
DEBUG reconnecting...
DEBUG Event triggered: session_end
DEBUG SEND (IMMED): </stream:stream>
INFO Waiting for </stream:stream> from server
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION connected -> disconnected
DEBUG connecting...
DEBUG Waiting 2.182856674502724 seconds before connecting.
$ python3 echo_client.py --j myfoobotxmpp@jwchat.org -p *************** -v
DEBUG Loaded Plugin: RFC 6120: Stream Feature: STARTTLS
DEBUG Loaded Plugin: RFC 6120: Stream Feature: Resource Binding
DEBUG Loaded Plugin: RFC 3920: Stream Feature: Start Session
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval
DEBUG Loaded Plugin: RFC 6120: Stream Feature: SASL
DEBUG Loaded Plugin: XEP-0030: Service Discovery
DEBUG Loaded Plugin: XEP-0004: Data Forms
DEBUG Loaded Plugin: XEP-0082: XMPP Date and Time Profiles
DEBUG Loaded Plugin: XEP-0131: Stanza Headers and Internet Metadata
DEBUG Loaded Plugin: XEP-0060: Publish-Subscribe
DEBUG Loaded Plugin: XEP-0199: XMPP Ping
DEBUG Waiting 1.9769454502773929 seconds before connecting.
DEBUG DNS: Querying SRV records for jwchat.org
DEBUG DNS: Querying jwchat.org for AAAA records.
DEBUG DNS: No AAAA records for jwchat.org
DEBUG DNS: Querying jwchat.org for A records.
DEBUG Connecting to 188.40.80.245:5222
DEBUG Event triggered: connected
DEBUG ==== TRANSITION disconnected -> connected
DEBUG Starting HANDLER THREAD
DEBUG Loading event runner
DEBUG SEND (IMMED): <stream:stream to='jwchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG RECV: <stream:stream id="7594903480059987080" from="jwchat.org" version="1.0" xml:lang="en">
DEBUG RECV: <stream:features xmlns="http://etherx.jabber.org/streams"><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="HiCcrtD+h+kKiCJpPPzqXGnZR2w=" /><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls></stream:features>
DEBUG SEND (IMMED): <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls>
DEBUG RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
DEBUG Starting TLS
INFO Negotiating TLS
INFO Using SSL version: TLSv1
DEBUG CERT: -----BEGIN CERTIFICATE-----
MIIFfTCCBGWgAwIBAgISBMIm4p955K5i8h9ejL41fxueMA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0yMDAxMDUyMjAzMDhaFw0y
MDA0MDQyMjAzMDhaMB0xGzAZBgNVBAMTEmFjY291bnRzLngtYmVyZy5kZTCCASIw
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0CTBgb4uJGUZJ2/S/0qwRTFZP8
Q1lGJXPYshPOeKr+IRmqefqW+0JxMO9C0D3ndYz0DlCAYum27S38rne+m9rpxF2m
t87VE3hOlMZgxaVeljQ2UQ08d/16v+srCQ1bZrnQKebpSogYPwUq8yXZMUZXCfzP
76M8Y7l//Kr2+anDB226mJYT4MKVxTnN79mJoHDderoCVA+HwCr44XGdXPzoUxCb
tR/NFcX5nRhvIE7KweZLHlMIrDlW+yy4vhzJbDiP9FiBXlsb+B7/XLqs6h3JsDUI
+xkiRx3oe7bK57xgfZD27vRLJ75r3SswSPtNnIPPrm0N1n8zFTS0P6n9k68CAwEA
AaOCAogwggKEMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYI
KwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUuA0ErH0OQMLGzdjRTtVK
QOnBXKAwHwYDVR0jBBgwFoAUqEpqYwR93brm0Tm3pkVl7/Oo7KEwbwYIKwYBBQUH
AQEEYzBhMC4GCCsGAQUFBzABhiJodHRwOi8vb2NzcC5pbnQteDMubGV0c2VuY3J5
cHQub3JnMC8GCCsGAQUFBzAChiNodHRwOi8vY2VydC5pbnQteDMubGV0c2VuY3J5
cHQub3JnLzA+BgNVHREENzA1ghNhY2NvdW50cy5qd2NoYXQub3JnghJhY2NvdW50
cy54LWJlcmcuZGWCCmp3Y2hhdC5vcmcwTAYDVR0gBEUwQzAIBgZngQwBAgEwNwYL
KwYBBAGC3xMBAQEwKDAmBggrBgEFBQcCARYaaHR0cDovL2Nwcy5sZXRzZW5jcnlw
dC5vcmcwggEEBgorBgEEAdZ5AgQCBIH1BIHyAPAAdgBep3P531bA57U2SH3QSeAy
epGaDIShEhKEGHWWgXFFWAAAAW938qUmAAAEAwBHMEUCIBzKg8z+EiTn3pjqHtr+
f5+Lvcgj1j96t3Lh+8usYyONAiEA7TJsY0fl19uEwRWOD6Y/+KSGQzvJhkUr5UnE
PxmcTUoAdgAHt1wb5X1o//Gwxh0jFce65ld8V5S3au68YToaadOiHAAAAW938qVR
AAAEAwBHMEUCIQD/atXtQQODMGQtBD8qANjCaMjryAnxTPurQRON5mF7QgIgI5M1
MilV9+oY7QdyHrRqCywRJnSxO+lpQ2XuTXkax7MwDQYJKoZIhvcNAQELBQADggEB
AEQ9PLqN74QTCAP/0YPxDIwGNyojGToNrn05GVRFKyjvb4OJiT+R8KVErpjBm/PX
ckWRwZuf6sLlF7VyUfP45eHp4ZvZTRIo81jTtONZOCuioTo/HUGGTAWF2RO2vXBs
bC1VdAYtZEZSndpzKloOH8NRkWhPueOrG1na3FaYsA8BhU8N+Uo5fI75KCsCvGPm
d0K6pEGDJT3hn/cw1w9M8JyDo4RWAFo0gLKPGLl42P0prF4yZIxvE3zcohxXX1de
Be835gxCqr+seG9rXgMRCYdGCc3XOwRJLHeaqC4/r/KU7bn1qEu/YHvZCm4SjkEd
KwG8dAa8vTUEhibOT0bwB/Y=
-----END CERTIFICATE-----
DEBUG Event triggered: ssl_cert
ERROR Connection error.
ERROR <TagSet object at 0x7f6868f7f198 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x7f6868f8cc50 tagSet <TagSet object at 0x7f68692aff60 tags 0:0:4> encoding iso-8859-1>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1492, in _process
if not self.__read_xml():
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1564, in __read_xml
self.__spawn_event(xml)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1632, in __spawn_event
handler.prerun(stanza_copy)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/handler/callback.py", line 64, in prerun
self.run(payload, True)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/handler/callback.py", line 76, in run
self._pointer(payload)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/features/feature_starttls/starttls.py", line 64, in _handle_starttls_proceed
if self.xmpp.start_tls():
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 889, in start_tls
cert.verify(self._expected_server_name, self._der_cert)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/cert.py", line 134, in verify
cert_names = extract_names(raw_cert)
File "/usr/local/lib/python3.6/dist-packages/sleekxmpp/xmlstream/cert.py", line 73, in extract_names
asn1Spec=OctetString())[0]
File "/home/shernanz/.local/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 1530, in __call__
'%s not in asn1Spec: %r' % (tagSet, asn1Spec)
pyasn1.error.PyAsn1Error: <TagSet object at 0x7f6868f7f198 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x7f6868f8cc50 tagSet <TagSet object at 0x7f68692aff60 tags 0:0:4> encoding iso-8859-1>
DEBUG reconnecting...
DEBUG Event triggered: session_end
DEBUG SEND (IMMED): </stream:stream>
INFO Waiting for </stream:stream> from server
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION connected -> disconnected
DEBUG connecting...
DEBUG Waiting 1.9525787336847542 seconds before connecting.
DEBUG No remaining DNS records to try.
DEBUG Waiting 4.480320803945388 seconds before connecting.
$ python3 echo_client.py --j myfoobotxmpp@protonxmpp.ch -p *************** -v
DEBUG Loaded Plugin: RFC 6120: Stream Feature: STARTTLS
DEBUG Loaded Plugin: RFC 6120: Stream Feature: Resource Binding
DEBUG Loaded Plugin: RFC 3920: Stream Feature: Start Session
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval
DEBUG Loaded Plugin: RFC 6120: Stream Feature: SASL
DEBUG Loaded Plugin: XEP-0030: Service Discovery
DEBUG Loaded Plugin: XEP-0004: Data Forms
DEBUG Loaded Plugin: XEP-0131: Stanza Headers and Internet Metadata
DEBUG Loaded Plugin: XEP-0082: XMPP Date and Time Profiles
DEBUG Loaded Plugin: XEP-0060: Publish-Subscribe
DEBUG Loaded Plugin: XEP-0199: XMPP Ping
DEBUG Waiting 2.2805581822372276 seconds before connecting.
DEBUG DNS: Querying SRV records for protonxmpp.ch
DEBUG DNS: Querying protonxmpp.ch for AAAA records.
DEBUG DNS: No AAAA records for protonxmpp.ch
DEBUG DNS: Querying protonxmpp.ch for A records.
DEBUG Connecting to 167.71.2.211:5222
DEBUG Event triggered: connected
DEBUG ==== TRANSITION disconnected -> connected
DEBUG Starting HANDLER THREAD
DEBUG Loading event runner
DEBUG SEND (IMMED): <stream:stream to='protonxmpp.ch' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG RECV: <stream:stream from="protonxmpp.ch" id="3jchinnkz2" xml:lang="en" version="1.0">
DEBUG RECV: <stream:features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms></stream:features>
DEBUG SEND (IMMED): <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls>
DEBUG RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
DEBUG Starting TLS
INFO Negotiating TLS
INFO Using SSL version: TLSv1
ERROR CERT: Invalid certificate trust chain.
DEBUG Event triggered: session_end
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION connected -> disconnected
ERROR Can not read from closed socket.
DEBUG reconnecting...
DEBUG connecting...
DEBUG Waiting 1.4115443117907138 seconds before connecting.
DEBUG No remaining DNS records to try.
DEBUG Waiting 2.773126698792038 seconds before connecting.
DEBUG DNS: Querying SRV records for protonxmpp.ch
DEBUG DNS: Querying protonxmpp.ch for AAAA records.
DEBUG DNS: No AAAA records for protonxmpp.ch
DEBUG DNS: Querying protonxmpp.ch for A records.
DEBUG Connecting to 167.71.2.211:5222
DEBUG Event triggered: connected
DEBUG ==== TRANSITION disconnected -> connected
DEBUG SEND (IMMED): <stream:stream to='protonxmpp.ch' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG RECV: <stream:stream from="protonxmpp.ch" id="87rsdk37t" xml:lang="en" version="1.0">
DEBUG RECV: <stream:features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms></stream:features>
DEBUG SEND (IMMED): <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls>
DEBUG RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
DEBUG Starting TLS
INFO Negotiating TLS
INFO Using SSL version: TLSv1
ERROR CERT: Invalid certificate trust chain.
DEBUG Event triggered: session_end
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION connected -> disconnected
ERROR Can not read from closed socket.
DEBUG reconnecting...
DEBUG connecting...
DEBUG Waiting 2.135751964399079 seconds before connecting.
DEBUG No remaining DNS records to try.
DEBUG Waiting 4.327471469384208 seconds before connecting.
There isn't any improvent with master
or 1.3.2
My environment
The problem
suchat.org
I have severals bots in suchat.org and most of times they connect without problems, but some times happens this:
In fact, I have issues also with others servers:
xmpp.jp
jabber.at
jwchat.org