首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用errbot连接到Hipchat?获取套接字的权限被拒绝。

无法使用errbot连接到Hipchat?获取套接字的权限被拒绝。
EN

Stack Overflow用户
提问于 2017-09-25 13:18:52
回答 1查看 135关注 0票数 0

同时将错误机器人与自己托管的机器人连接。在执行此操作时遇到此错误-

代码语言:javascript
复制
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...

这是我用来做同样配置的配置。

代码语言:javascript
复制
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',
}

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

或者也请推荐任何其他机器人(在python中),与自托管的Hipchat工作。

EN

回答 1

Stack Overflow用户

发布于 2017-11-16 15:52:57

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提供了有关此主题的更多信息。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46398050

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档