[ejabberd] mod_rest

Ricky Gutierrez xserverlinux at gmail.com
Sun Aug 27 07:03:16 MSK 2017


2017-08-24 13:50 GMT-06:00 Ricky Gutierrez <xserverlinux at gmail.com>:
> 2017-08-24 2:55 GMT-06:00 Badlop <badlop at gmail.com>:
>> And what about the ejabberd log files?
>>
>> There's a typo in your config file, see that blankspace in the string
>> of the first host:
>> hosts:
>>   - " mydomain"
>>   - "localhost"
>>
>
> Hi, sorry it's a typing error when composing this email , In my server is ok.
>
>> If I make a mistake like this, ejabberd does not start, and complains:
>> ...
>> 10:52:45.575 [info] Loading configuration from /etc/ejabberd/ejabberd.yml
>> 10:52:45.665 [error] Can't load config file: invalid host name [<<"
>> example.com">>]
>> 10:52:45.666 [error] CRASH REPORT Process <0.64.0> with 0 neighbours
>> exited with reason: "invalid hostname" in application_mast
>> er:init/4 line 134
>> 10:52:45.666 [info] Application ejabberd exited with reason: "invalid hostname"
>>
>
> Look when i do the test
>
> curl  http://mydomain:5285/rest -v -d '<message to=“ricardog at mydomain>  from=“admin at mydomain/rest"><body>el cielo es real</body></message>'
>
>
> * About to connect() to siscc.fomav.gob.ni port 5285 (#0)
> *   Trying 198.74.52.72...
> * Connected to mydomain (198.x.x.x) port 5285 (#0)
>> POST /rest HTTP/1.1
>> User-Agent: curl/7.29.0
>> Host: mydomain:5285
>> Accept: */*
>> Content-Length: 125
>> Content-Type: application/x-www-form-urlencoded
>>
> * upload completely sent off: 125 out of 125 bytes
> < HTTP/1.1 406 Not Acceptable
> < Content-Type: text/html; charset=utf-8
> < Content-Length: 43
> <
> * Connection #0 to host mydomain left intact
>
> ejabberd log
>
> 2017-08-24 13:26:01.867 [info] <0.342.0>@ejabberd_listener:accept:302
> (<0.579.0>) Accepted connection 198.X.X.X:41476 -> 198.X.X.X:5285
> 2017-08-24 13:26:01.867 [info] <0.579.0>@ejabberd_http:init:149
> started: {gen_tcp,#Port<0.23091>}
> 2017-08-24 13:32:01.379 [info] <0.342.0>@ejabberd_listener:accept:302
> (<0.585.0>) Accepted connection 198.X.X.X:41478 -> 198.X.X.X:5285
> 2017-08-24 13:32:01.379 [info] <0.585.0>@ejabberd_http:init:149
> started: {gen_tcp,#Port<0.23092>}
> 2017-08-24 13:43:46.526 [info] <0.342.0>@ejabberd_listener:accept:302
> (<0.596.0>) Accepted connection 198.X.X.X:41480 -> 198.X.X.X:5285
> 2017-08-24 13:43:46.526 [info] <0.596.0>@ejabberd_http:init:149
> started: {gen_tcp,#Port<0.23093>}
>
> Thanks for you  help.
>

any advice?

-- 
rickygm

http://gnuforever.homelinux.com


More information about the ejabberd mailing list