我使用的是一个xmpppy库来连接XMPP服务器......我能够连接服务器但是身份验证失败"插件被忽略:另一个实例已插入。"
这个错误意味着什么,我该如何解决?
In [37]: c.isConnected()
Out[37]: ''
In [38]: jid = xmpp.protocol.JID('gathole@localhost')
In [39]: c.auth(jid.getNode(),'password', resource=jid.getResource())
DEBUG: sasl start Plugging <xmpp.auth.SASL instance at 0x108fc2710> into <xmpp.client.Client instance at 0x109003c68>
DEBUG: sasl error Plugging ignored: another instance already plugged.
Traceback (most recent call last):
File "/Users/gathole/.virtualenvs/driveu/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 459, in interact
line = self.raw_input(prompt)
File "/Users/gathole/.virtualenvs/driveu/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 528, in raw_input
line = py3compat.cast_unicode_py2(self.raw_input_original(prompt))
KeyboardInterrupt
DEBUG: gen_auth start Plugging <xmpp.auth.NonSASL instance at 0x108fc2710> into <xmpp.client.Client instance at 0x109003c68>
DEBUG: gen_auth error Plugging ignored: another instance already plugged.
Traceback (most recent call last):
File "/Users/gathole/.virtualenvs/driveu/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 459, in interact
line = self.raw_input(prompt)
File "/Users/gathole/.virtualenvs/driveu/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 528, in raw_input
line = py3compat.cast_unicode_py2(self.raw_input_original(prompt))
KeyboardInterrupt
答案 0 :(得分:0)
它需要更改XMPP ejabberd服务器配置。将行{hosting,[&#34; localhost&#34;]}更改为{hosts,[&#34; localhost&#34;,&#34; server-domain&#34;,&#34; server-ip- ejabberd.cfg文件中的地址&#34;]}。 重新启动服务器,并在具有服务器域或服务器ip的新主机下创建另一个用户。