身份验证时XMPP出错(XMPP get error while authentication)

编程入门 行业动态 更新时间:2024-10-22 23:27:20
身份验证时XMPP出错(XMPP get error while authentication)

我正在使用一个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

I am using a xmpppy library to connect with XMPP server... I was able to connect with server but while authentication get error "Plugging ignored: another instance already plugged."

What does this error mean and how can I resolve it??

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

最满意答案

它需要更改XMPP ejabberd服务器配置。 在ejabberd.cfg文件中使用{hosts,[“localhost”,“server-domain”,“server-ip-address”]}更改行{hosts,[“localhost”]}。 重新启动服务器并使用服务器域或服务器ip在新主机下创建另一个用户。

It requires change the in XMPP ejabberd server config. Change the line {hosts, ["localhost"]} with {hosts, ["localhost", "server-domain", "server-ip-address"]} in the ejabberd.cfg file. Restart the server and create another user under new hosts with the server domain or server ip.

更多推荐

本文发布于:2023-07-24 01:51:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1240125.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   XMPP   authentication   error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!