ejabberd mod_rest installation warning & crash report -
i've tried test mod_rest ejabberd. received 'ok' result warning : "warning: undefined callback function depends/2 (behaviour 'gen_mod')" during installation of module. when tried test mod_rest installed using rest client, there's crash report in log.
ejabberd version : 16.08.23
url : http://localhost:5280/rest
ejabberd.yml
hosts: - "localhost" - "192.168.88.88" - "127.0.0.1" listen: - port: 5280 module: ejabberd_http request_handlers: "/websocket": ejabberd_http_ws "/rest": mod_rest web_admin: true http_bind: true captcha: true modules: mod_rest: {}
installation info
$/sbin/ejabberdctl module_install mod_rest src/mod_rest.erl:27: warning: undefined callback function depends/2 (behaviour 'gen_mod') ok
ejabberd.log
2016-08-24 11:14:31.516 [error] <0.3683.0> crash report process <0.3683.0> 0 neighbours crashed reason: bad argument in call erlang:binary_to_list({127,0,0,1}) in str:tokens/2 line 242
crash.log
2016-08-24 14:42:20 =crash report==== crasher: initial call: ejabberd_http:init/2 pid: <0.3274.0> registered_name: [] exception error: bad argument: [{erlang,binary_to_list,[{127,0,0,1}],[]},{str,tokens,2,[{file,"src/str.erl"},{line,242}]},{acl,parse_ip_netmask,1,[{file,"src/acl.erl"},{line,536}]},{mod_rest,'-ip_matches/2-fun-0-',2,[{file,"src/mod_rest.erl"},{line,144}]},{lists,any,2,[{file,"lists.erl"},{line,1225}]},{mod_rest,check_member_option,3,[{file,"src/mod_rest.erl"},{line,134}]},{mod_rest,process,2,[{file,"src/mod_rest.erl"},{line,55}]},{ejabberd_http,process,5,[{file,"src/ejabberd_http.erl"},{line,363}]}] ancestors: [<0.3190.0>,ejabberd_listeners,ejabberd_sup,<0.2578.0>] messages: [] links: [#port<0.35648>] dictionary: [] trap_exit: false status: running heap_size: 1598 stack_size: 27 reductions: 1894 neighbours:
Comments
Post a Comment