what else to do to enable XML-RPC in ejabberd?

元气小坏坏 提交于 2020-06-29 04:01:06

问题


I have configure ejabberd on my server but when i tried to access ejabberd i am getting the error the port 4560/rpc2 is not responding.I have uncomment out XML-RPC in ejabberd.yml file but after uncomment the ejabberd stop working.Here is the code which i uncomment.

  - 
##     port: 4560
##   module: ejabberd_xmlrpc
##   maxsessions: 10
##   timeout: 5000
##   access_commands: 
##   admin:
## commands: all
##         options: []

i have search almost everything what else i have to install or uncomment to enable this port and function.


回答1:


I have configure ejabberd on my server

You don't mention what ejabberd version you are using. I guess the latest released, ejabberd 19.09.1

but when i tried to access ejabberd i am getting the error the port 4560/rpc2 is not responding.

That may be because you must configure a listener for port 4560 in ejabberd.yml

I have uncomment out XML-RPC in ejabberd.yml file but after uncomment the ejabberd stop working.Here is the code which i uncomment.

You don't mention what error messages are shown in the ejabberd log files. Was it like this?

11:22:26.482 [critical] Failed to start ejabberd application: Invalid value of option listen->3: Unknown option: maxsessions.

It means the option maxsessions is no longer supported by ejabberd_xmlrpc.

I configure it like this:

  -
    port: 4560
    module: ejabberd_xmlrpc

Then I do a simple test, visiting this website:

http://localhost:4560/

And the ejabberd_xmlrpc replies as expected that this GET query is not supported:

400 Bad Request



回答2:


I have installed the latest version of ejabberd-20.01 so now i am not getting xml-rpc error any more.But now i am facing user register error.



来源:https://stackoverflow.com/questions/59944077/what-else-to-do-to-enable-xml-rpc-in-ejabberd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!