Plugin doesn’t have any debug, just check logs in ejabberd.log on Your host with XMPP server.
Anyway, I think You just put wrong REST API url OR it’s a problem wih mod_rest setup in ejabberd (check the example configuration in plugin settings).
Thread Starter
corvy
(@corvy)
ok, I will doublecheck again! 🙂 Thanks.
Thread Starter
corvy
(@corvy)
ok, now I have tested some more. If I try to use the commandprompt way with wget I get the following:
# wget http://jabber.no:5285/rest/ –server-response –post-data ‘<message to=”[email protected]” from=”localhost/rest”><body>World</body></message>’
–2016-03-13 10:09:50– http://jabber.no:5285/rest/
Resolving jabber.no… 2a02:228:300:1::119, 80.239.54.119
Connecting to jabber.no|2a02:228:300:1::119|:5285… failed: Connection refused.
Connecting to jabber.no|80.239.54.119|:5285… connected.
HTTP request sent, awaiting response…
HTTP/1.1 406 Not Acceptable
Content-Type: text/html; charset=utf-8
Content-Length: 43
2016-03-13 10:09:50 ERROR 406: Not Acceptable.
Then I have tried in the wordpress config to do a test on e-mail for a JID ([email protected]) under tools. When I click check I get the following in my log:
2016-03-13 10:12:46.300 [info] <0.1163.0>@ejabberd_listener:accept:333 (#Port<0.21156>) Accepted connection 80.239.54.119:50947 -> 80.239.54.119:5285
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:init:154 S: [{[<<“rest”>>],mod_rest}]
2016-03-13 10:12:46.301 [info] <0.5881.0>@ejabberd_http:init:158 started: {gen_tcp,#Port<0.21156>}
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:process_header:281 (#Port<0.21156>) http query: ‘POST’ <<“/rest”>>
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:extract_path_query:395 client data: <<“check_account \”stian\” \”jabber.no\””>>
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:process:353 [<<“rest”>>] matches [<<“rest”>>]
2016-03-13 10:12:46.301 [debug] <0.5881.0>@mod_rest:process:55 Error when processing REST request:
Data: <<“check_account \”stian\” \”jabber.no\””>>
Error: {badmatch,false}
I am at a loss to what I am doing wrong here. I understand that ejabberd is saying that it cannot match my query, but I cannot for the love of me understand what the issue is.
If you have any tips they are very much welcomed! I would relly love to use this plugin 😀 Thanks!
You should configure mod_rest to allow check_account command (and some others as it is in plugin example config)