0

虽然将错误机器人与自托管连接。执行此操作时出现此错误 -

10:40:34 DEBUG    sleekxmpp.xmlstream.xmlst RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
10:40:34 DEBUG    sleekxmpp.features.featur Starting TLS
10:40:34 INFO     sleekxmpp.xmlstream.xmlst Negotiating TLS
10:40:34 INFO     sleekxmpp.xmlstream.xmlst Using SSL version: TLSv1
10:40:34 DEBUG    sleekxmpp.xmlstream.xmlst Event triggered: socket_error
10:40:34 ERROR    sleekxmpp.xmlstream.xmlst **Socket Error #13: Permission denied**
10:40:34 DEBUG    sleekxmpp.xmlstream.xmlst reconnecting...

这是我用于相同的配置。

BACKEND = 'Hipchat'  # Errbot will start in text mode (console only mode) and will answer commands from there.

BOT_DATA_DIR = r'/Users/XXX/errbot/errbot/data'
BOT_EXTRA_PLUGIN_DIR = '/Users/XXXX/errbot/errbot/plugins'

BOT_LOG_FILE = r'/Users/XXXX/errbot/errbot/errbot.log'
BOT_LOG_LEVEL = logging.DEBUG

BOT_ADMINS = ('@XXXXX', )  # !! Don't leave that to "CHANGE ME" if you connect your errbot to a chat system !!

# The identity, or credentials, used to connect to a server
BOT_IDENTITY = {
    'username': 'XXXX',  # The JID of the user you have created for the bot
    'password': 'XXXXX',       # The corresponding password for this user
    'token': 'XXXXXX',
    'endpoint' : 'https://xxxx.xxxx.com',
}

有人可以让我知道我在上面的配置中做错了什么吗?

或者还请建议任何其他与自托管 Hipchat 一起使用的机器人(在 python 中)。

4

1 回答 1

0

Hipchat Server 在 2.0.7 版本中删除了对 XMPP 端口的外部访问,转而支持仅通过端口 443 进行通信(使用 XMPP 的 BOSH 协议)。

根据您的服务器版本,您可能可以通过运行重新启用它们hipchat network --enable-xmpp-ports

https://confluence.atlassian.com/hipchatkb/external-xmpp-ports-5222-5223-disabled-by-default-in-hipchat-server-2-0-7-859442760.html有关于这个主题的更多信息。

于 2017-11-16T07:52:56.507 回答