[ejabberd] mod_rest error on presence update

Evgeny Khramtsov xramtsov at gmail.com
Thu Feb 15 09:28:26 MSK 2018


Thu, 15 Feb 2018 12:38:40 +1300
David Cunningham <dcunningham at voisonics.com> wrote:

> Hello,
> 
> We used to successfully (on version 16 I think) send the following
> XML to mod_rest to set a user's presence status:
> 
> <presence to="user_a at example.com"
> from="user_b at example.com"><show>dnd</show><status>On  
> the phone</status></presence>
> 
> However now with ejabberd versions 17 and 18 we get this error back:
> 
> 2018-02-14 15:33:47.158 [debug]
> <0.492.0>@mod_rest:maybe_post_request:83 Error when processing REST
> request: Data: <<"<presence to=\"user_a at example.com\"
> from=\"user_b at example.com\"><show>dnd</show><status>On  
> the phone</status></presence>">>
> Error: {badrecord,message}
> 
> Does anyone know why this error occurs? Thank you in advance.
> 

Probably nobody ported mod_rest to the new ejabberd API.


More information about the ejabberd mailing list