pyxmpp自带的demo 连接服务器出现SASL authentication failed

C:\Users\Jackie\Downloads\pyxmpp2\examples>send_message_client.py
Your jid: [email protected].*.*2
Your password:
Target jid: [email protected].*.*
Message: sfsdf
INFO:root:-- Connecting to 10.2.*.*:5222...
INFO:root:-- Connected to 10.2.*.*:5222
INFO:root:-- Connected to 10.2.*.*
INFO:root:-- Got stream features
Traceback (most recent call last):
  File "C:\Users\Jackie\Downloads\pyxmpp2\examples\send_message_client.py", line 64, in <module>
    client.run()
  File "C:\Python27\lib\site-packages\pyxmpp2\client.py", line 216, in run
    self.main_loop.loop(timeout)
  File "C:\Python27\lib\site-packages\pyxmpp2\mainloop\base.py", line 86, in loop
    self.loop_iteration(interval)
  File "C:\Python27\lib\site-packages\pyxmpp2\mainloop\select.py", line 77, in loop_iteration
    handler.handle_read()
  File "C:\Python27\lib\site-packages\pyxmpp2\transport.py", line 758, in handle_read
    self._feed_reader(data)
  File "C:\Python27\lib\site-packages\pyxmpp2\transport.py", line 853, in _feed_reader
    self._reader.feed(data)
  File "C:\Python27\lib\site-packages\pyxmpp2\xmppparser.py", line 212, in feed
    self.parser.feed(data)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 1622, in feed
    self._parser.Parse(data, 0)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 1531, in _end
    return self.target.end(self._fixname(tag))
  File "C:\Python27\lib\site-packages\pyxmpp2\xmppparser.py", line 158, in end
    self._handler.stream_element(element)
  File "C:\Python27\lib\site-packages\pyxmpp2\streambase.py", line 367, in stream_element
    self._process_element(element)
  File "C:\Python27\lib\site-packages\pyxmpp2\streambase.py", line 500, in _process_element
    handled = handler(self, element)
  File "C:\Python27\lib\site-packages\pyxmpp2\streamsasl.py", line 346, in _process_sasl_failure
    raise SASLAuthenticationFailed("SASL authentication failed")
pyxmpp2.exceptions.SASLAuthenticationFailed: SASL authentication failed


已经连接服务器成功了,可是为什么就是发不过去消息呢????

你可能感兴趣的:(python)