Quantcast
Channel: User Sergey Ponomarev - Stack Overflow
Viewing all articles
Browse latest Browse all 58

Answer by Sergey Ponomarev for In my python code I Cant Connect to an Openfire Server using slixmpp

$
0
0

You need to enable logging of a connection error. With high chances there is required TLS by default but your server (local?) doesn't have the TLS enabled.

Check the slixmpp.connect() sources:

https://github.com/poezio/slixmpp/blob/7a0fb970833c778ed50dcb49c5b7b4043d57b1e5/slixmpp/clientxmpp.py#L140

See the force_starttls: bool = True param. It will not connect if the server doesn't have TLS enabled and rejects the START TLS command.So try to specify the param to False.

As a side recommendation check Gajim sources which is also written in Python.


Viewing all articles
Browse latest Browse all 58

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>