SleekXMPP connect with my ejabberd server with some error #250
Comments
can you show us your server configuration ? |
This is because Sleek does not allow PLAIN authentication over an unencrypted connection, by default. To allow it, set this before connecting and processing:
|
@legastero Thanks! That was very helpful. |
Hi, Send XML on stream = <<"<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4823323092473893070' from='xmpp-vsd-sudhar-set1.net' xml:lang='en'>">> Even i tried adding before connect. But still I see same error. Can you please help me out. |
Hi I am also receiving similar error on latest 17.11 ejabberd:
|
Found the issue - its user/password problem in script. sorry guys. |
i use code from
https://github.com/fritzy/SleekXMPP#the-sleekxmpp-boilerplate
anyone can give some suggestion?
DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6120: Stream Feature: STARTTLS
DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6120: Stream Feature: Resource Binding
DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 3920: Stream Feature: Start Session
DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning
DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval
DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6120: Stream Feature: SASL
DEBUG:sleekxmpp.xmlstream.xmlstream:Connecting to 127.0.0.1:5222
DEBUG:sleekxmpp.thirdparty.statemachine: ==== TRANSITION disconnected -> connected
DEBUG:sleekxmpp.xmlstream.xmlstream:Starting HANDLER THREAD
DEBUG:sleekxmpp.xmlstream.xmlstream:Loading event runner
DEBUG:sleekxmpp.xmlstream.xmlstream:SEND (IMMED): <stream:stream to='localhost' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG:sleekxmpp.xmlstream.xmlstream:RECV: <stream:stream version="1.0" from="localhost" id="3094273301" xml:lang="en">
DEBUG:sleekxmpp.xmlstream.xmlstream:RECV: <stream:features xmlns="http://etherx.jabber.org/streams">PLAIN/stream:features
INFO:sleekxmpp.util.sasl.client:SASL: PLAIN: PLAIN without encryption
ERROR:sleekxmpp.features.feature_mechanisms.mechanisms:No appropriate login method.
DEBUG:sleekxmpp.xmlstream.xmlstream:SEND (IMMED): /stream:stream
INFO:sleekxmpp.xmlstream.xmlstream:Waiting for /stream:stream from server
DEBUG:sleekxmpp.xmlstream.xmlstream:End of stream recieved
DEBUG:sleekxmpp.xmlstream.xmlstream:Waiting for 3 threads to exit.
DEBUG:sleekxmpp.xmlstream.xmlstream:Threading deadlock prevention!
DEBUG:sleekxmpp.xmlstream.xmlstream:Marked event_thread_0 thread as ended due to disconnect() call. 2 threads remain.
DEBUG:sleekxmpp.xmlstream.scheduler:Quitting Scheduler thread
DEBUG:sleekxmpp.xmlstream.xmlstream:Stopped scheduler thread. 1 threads remain.
DEBUG:sleekxmpp.xmlstream.xmlstream:Stopped send thread. 0 threads remain.
DEBUG:sleekxmpp.thirdparty.statemachine: ==== TRANSITION connected -> disconnected
DEBUG:sleekxmpp.clientxmpp:Finished processing stream features.
DEBUG:sleekxmpp.xmlstream.xmlstream:Finished exiting event runner thread after early termination from disconnect() call. 0 threads remain.
DEBUG:sleekxmpp.thirdparty.statemachine:State was not ready
The text was updated successfully, but these errors were encountered: