[ejabberd] mod_rest does not return process_rosteritems results

Kirk Bateman kirk.bateman at gmail.com
Wed Nov 14 12:32:15 MSK 2012


David,

You'll get a much more useful response if you post the ejabberd.log for
when the mod_rest request gets processed.

Regards

Kirk Bateman
 On 13 Nov 2012 22:58, "David Cunningham" <dcunningham at voisonics.com> wrote:

> Hello,
>
> I'm having a problem with using mod_rest to get a list of everyone's
> presence roster. When I run "ejabberdctl process_rosteritems" from the
> command line I get the results fine, but when calling it via mod_rest it
> always returns "0". Examples below.
> Anyone have any idea why?
> Thanks in advance.
>
>
> # ejabberdctl process_rosteritems list any any any any
> There are 2 roster items in total.
>
> =INFO REPORT==== 14-Nov-2012::09:51:52 ===
> D(<5084.4579.0>:ejabberd_commands:314) : Executing command
> mod_admin_extra:process_rosteritems with Args=["list",
>
> "any",
>
> "any",
>
> "any",
>
> "any"]
> ** at node ejabberd at myhost **
> Matches: bob at myhost user at myhost
> Progress 50% - visited 1 - deleted 1
> Matches: user at myhost bob at myhost
> Progress 100% - visited 2 - deleted 2
>
>
> # wget http://myhost:5280/rest/ --server-response --post-data
> 'process_rosteritems list any any any any' -O index.html
> --2012-11-14 09:51:20--  http://myhost:5280/rest/
> Resolving myhost... 12.34.56.78
> Connecting to myhost|12.34.56.78|:5280... connected.
> HTTP request sent, awaiting response...
>   HTTP/1.0 200 OK
>   Connection: keep-alive
>   Content-Type: text/html; charset=utf-8
>   Content-Length: 1
> Length: 1 [text/html]
> Saving to: `index.html'
>
> 100%[=====================================================================================>]
> 1           --.-K/s   in 0s
>
> 2012-11-14 09:51:20 (65.5 KB/s) - `index.html' saved [1/1]
>
> # cat index.html
> 0
>
>
> --
> David Cunningham, Voisonics
> http://voisonics.com/
> USA: +1 213 221 1092
> UK: +44 (0) 20 3298 1642
> Australia: +61 (0) 2 8063 9019
>
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20121114/77e8a626/attachment.html>


More information about the ejabberd mailing list