[ejabberd] Error: REST request is rejected by service

David Cunningham dcunningham at voisonics.com
Fri Jul 22 08:52:53 MSK 2016


I'm trying to push presence updates to XMPP clients, and have been working
with mod_rest. When an HTTP request is sent it gets an error "REST request
is rejected by service". I'm sure the client IP is allowed in the mod_rest
configuration so what could be wrong? Thanks in advance.

BTW, if another method instead of mod_rest is recommended I'd be interested
to hear it.

Using ngrep:

T XX.XX.246.78:42797 -> XX.XX.246.78:5285 [AP]
  POST /rest HTTP/1.1..TE: deflate,gzip;q=0.3..Connection: TE, close..Host:
foo.com:5285..User-Agent: foo 1.0..Content-Length: 132..Content-Type:
application/x-www-form-urlencoded....<presence to="david at foo.com" from="
other at foo.com"><status>On the phone</status></presence>
T XX.XX.246.78:5285 -> XX.XX.246.78:42797 [AP]
  HTTP/1.1 406 Not Acceptable..Content-Type: text/html;
charset=utf-8..Content-Length: 43....Error: REST request is rejected by

>From ejabberd.yml:

    port: 5285
    module: ejabberd_http
       "/rest": mod_rest


      - "XX.XX.246.78"

David Cunningham, Voisonics
USA: +1 213 221 1092
Australia: +61 (0) 2 8063 9019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20160722/4b155670/attachment.html>

More information about the ejabberd mailing list