Closed CreativeWolf closed 6 years ago
Heya,
Tried using this example given using wget:
wget http://localhost:5280/rest/ --server-response --post-data '<message to="boops@localhost" from="localhost/rest"><body>World</body></message>'
Here's the log I'm getting on ejabberd.log
2018-09-04 20:33:23.241 [info] <0.319.0>@ejabberd_listener:accept:272 (<0.686.0>) Accepted connection ::FFFF:127.0.0.1:33490 -> ::FFFF:127.0.0.1:5280 2018-09-04 20:33:23.242 [debug] <0.686.0>@ejabberd_http:init:147 S: [{[<<"ws">>],ejabberd_http_ws},{[<<"bosh">>],mod_bosh},{[<<"api">>],mod_http_api},{[<<"rest">>],mod_rest},{[<<"admin">>],ejabberd_web_admin}] 2018-09-04 20:33:23.242 [debug] <0.686.0>@ejabberd_http:process_header:305 (#Port<0.20808>) http query: 'POST' <<"/rest/">> 2018-09-04 20:33:23.242 [debug] <0.686.0>@ejabberd_http:process:392 [<<"rest">>] matches [<<"rest">>] 2018-09-04 20:33:23.249 [error] <0.686.0>@jlib:jid_to_string CRASH REPORT Process <0.686.0> with 0 neighbours crashed with reason: call to undefined function jlib:jid_to_string({jid,<<"boops">>,<<"localhost">>,<<>>,<<"boops">>,<<"localhost">>,<<>>})
This is the log from error.log
2018-09-04 20:33:23.249 [error] <0.686.0>@jlib:jid_to_string CRASH REPORT Process <0.686.0> with 0 neighbours crashed with reason: call to undefined function jlib:jid_to_string({jid,<<"boops">>,<<"localhost">>,<<>>,<<"boops">>,<<"localhost">>,<<>>})
Appreciate your help, thanks!
Thanks for reporting!
Heya,
Tried using this example given using wget:
wget http://localhost:5280/rest/ --server-response --post-data '<message to="boops@localhost" from="localhost/rest"><body>World</body></message>'
Here's the log I'm getting on ejabberd.log
This is the log from error.log
2018-09-04 20:33:23.249 [error] <0.686.0>@jlib:jid_to_string CRASH REPORT Process <0.686.0> with 0 neighbours crashed with reason: call to undefined function jlib:jid_to_string({jid,<<"boops">>,<<"localhost">>,<<>>,<<"boops">>,<<"localhost">>,<<>>})
Appreciate your help, thanks!