论坛首页 编程语言技术论坛

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

浏览 2877 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-12-12  
C:\Users\Jackie\Downloads\pyxmpp2\examples>send_message_client.py
Your jid: yang@10.2.*.*2
Your password:
Target jid: feng@10.2.*.*
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


已经连接服务器成功了,可是为什么就是发不过去消息呢????
   发表时间:2011-12-12  
danshenwuzui 写道
C:\Users\Jackie\Downloads\pyxmpp2\examples>send_message_client.py
Your jid: yang@10.2.*.*2
Your password:
Target jid: feng@10.2.*.*
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


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

有人能帮解答下么?这个应该和代理没有关系吧,我是通过代理连接上的服务器debug信息中都已经连接成功了,就是sasl验证没通过。。。
0 请登录后投票
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics