无法打开我的连接服务器:python

2024-05-12 22:41:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在我的fedora20机器上安装了openfire服务器,我正在尝试连接并插入一个新用户,其内容如下。。在

from openfire import UserService
api = UserService("192.xxx.x.xxx:9090/", "SecretKey")

我得到以下错误

^{pr2}$

我引用了以下网址:

https://github.com/plazix/python-openfire/blob/master/docs/user_service.md

任何帮助都将不胜感激!在


Tags: 用户fromhttpsimport服务器机器api内容
1条回答
网友
1楼 · 发布于 2024-05-12 22:41:54

尝试在URL前面加上协议。例如HTTP:

api = UserService("http://192.xxx.x.xxx:9090/", "SecretKey")

显然,您还需要使用有效的IP地址或主机名,而不是“192.xxx.x.xxx”。在

相关问题 更多 >