I have installed and configured mod_rest module based on the documentation but I make a call using wget (wget
I keep getting 404
Connecting to 127.0.0.1:5280... connected.
HTTP request sent, awaiting response...
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8
Content-Length: 334
2017-01-26 23:17:57 ERROR 404: Not Found.
The module is installed and loaded fine. After enabling debug level logging I see the following in log:
2017-01-26 23:17:57.626 [info] <0.552.0>@ejabberd_http:init:168 started: {gen_tcp,#Port<0.21422>} 2017-01-26 23:17:57.627 [debug] <0.552.0>@ejabberd_http:process_header:291 (#Port<0.21422>) http query: 'POST' <<"/rest/">> 2017-01-26 23:17:57.627 [debug] <0.552.0>@ejabberd_http:extract_path_query:407 client data: <<"registered_users navjeets-macbook-pro.local">>
Many things can fail. A) You
Many things can fail.
A) You are requesting to port 5280. Did you enable the request_handler in that port number, or in other one?
B) If you installed mod_rest using ejabberdctl module_install, it enabled its default configuration in $HOME/.ejabberd-modules and that may interfere with whatever you set in your main ejabberd.yml file. Are you aware of that?
C) You are requesting to the vhost "127.0.0.1". Do you have that host defined in your ejabberd configuration?
Thanks for pin pointing out
Thanks for pin pointing out the port. I was using the wrong port. Once I switched the port everything worked. Thanks a lot.