{"action":"created","issue":{"url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/257","repository_url":"https://api.github.com/repos/processone/ejabberd-contrib","labels_url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/257/comments","events_url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/257/events","html_url":"https://github.com/processone/ejabberd-contrib/issues/257","id":356855174,"node_id":"MDU6SXNzdWUzNTY4NTUxNzQ=","number":257,"title":"mod_rest - Unable to send message using wget as given in example","user":{"login":"CreativeWolf","id":5315780,"node_id":"MDQ6VXNlcjUzMTU3ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/5315780?v=4","gravatar_id":"","url":"https://api.github.com/users/CreativeWolf","html_url":"https://github.com/CreativeWolf","followers_url":"https://api.github.com/users/CreativeWolf/followers","following_url":"https://api.github.com/users/CreativeWolf/following{/other_user}","gists_url":"https://api.github.com/users/CreativeWolf/gists{/gist_id}","starred_url":"https://api.github.com/users/CreativeWolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CreativeWolf/subscriptions","organizations_url":"https://api.github.com/users/CreativeWolf/orgs","repos_url":"https://api.github.com/users/CreativeWolf/repos","events_url":"https://api.github.com/users/CreativeWolf/events{/privacy}","received_events_url":"https://api.github.com/users/CreativeWolf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"badlop","id":96807,"node_id":"MDQ6VXNlcjk2ODA3","avatar_url":"https://avatars1.githubusercontent.com/u/96807?v=4","gravatar_id":"","url":"https://api.github.com/users/badlop","html_url":"https://github.com/badlop","followers_url":"https://api.github.com/users/badlop/followers","following_url":"https://api.github.com/users/badlop/following{/other_user}","gists_url":"https://api.github.com/users/badlop/gists{/gist_id}","starred_url":"https://api.github.com/users/badlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badlop/subscriptions","organizations_url":"https://api.github.com/users/badlop/orgs","repos_url":"https://api.github.com/users/badlop/repos","events_url":"https://api.github.com/users/badlop/events{/privacy}","received_events_url":"https://api.github.com/users/badlop/received_events","type":"User","site_admin":false},"assignees":[{"login":"badlop","id":96807,"node_id":"MDQ6VXNlcjk2ODA3","avatar_url":"https://avatars1.githubusercontent.com/u/96807?v=4","gravatar_id":"","url":"https://api.github.com/users/badlop","html_url":"https://github.com/badlop","followers_url":"https://api.github.com/users/badlop/followers","following_url":"https://api.github.com/users/badlop/following{/other_user}","gists_url":"https://api.github.com/users/badlop/gists{/gist_id}","starred_url":"https://api.github.com/users/badlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badlop/subscriptions","organizations_url":"https://api.github.com/users/badlop/orgs","repos_url":"https://api.github.com/users/badlop/repos","events_url":"https://api.github.com/users/badlop/events{/privacy}","received_events_url":"https://api.github.com/users/badlop/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-04T15:09:20Z","updated_at":"2018-09-05T10:09:02Z","closed_at":"2018-09-05T10:09:02Z","author_association":"NONE","body":"Heya,\r\n\r\nTried using this example given using wget:\r\n\r\n`wget http://localhost:5280/rest/ --server-response --post-data '<message to=\"boops@localhost\" from=\"localhost/rest\"><body>World</body></message>'`\r\n\r\nHere's the log I'm getting on ejabberd.log\r\n\r\n```\r\n2018-09-04 20:33:23.241 [info] <0.319.0>@ejabberd_listener:accept:272 (<0.686.0>) Accepted connection ::FFFF:127.0.0.1:33490 -> ::FFFF:127.0.0.1:5280\r\n2018-09-04 20:33:23.242 [debug] <0.686.0>@ejabberd_http:init:147 S: [{[<<\"ws\">>],ejabberd_http_ws},{[<<\"bosh\">>],mod_bosh},{[<<\"api\">>],mod_http_api},{[<<\"rest\">>],mod_rest},{[<<\"admin\">>],ejabberd_web_admin}]\r\n2018-09-04 20:33:23.242 [debug] <0.686.0>@ejabberd_http:process_header:305 (#Port<0.20808>) http query: 'POST' <<\"/rest/\">>\r\n2018-09-04 20:33:23.242 [debug] <0.686.0>@ejabberd_http:process:392 [<<\"rest\">>] matches [<<\"rest\">>]\r\n2018-09-04 20:33:23.249 [error] <0.686.0>@jlib:jid_to_string CRASH REPORT Process <0.686.0> with 0 neighbours crashed with reason: call to undefined function jlib:jid_to_string({jid,<<\"boops\">>,<<\"localhost\">>,<<>>,<<\"boops\">>,<<\"localhost\">>,<<>>})\r\n```\r\nThis is the log from error.log\r\n\r\n`2018-09-04 20:33:23.249 [error] <0.686.0>@jlib:jid_to_string CRASH REPORT Process <0.686.0> with 0 neighbours crashed with reason: call to undefined function jlib:jid_to_string({jid,<<\"boops\">>,<<\"localhost\">>,<<>>,<<\"boops\">>,<<\"localhost\">>,<<>>})`\r\n\r\nAppreciate your help, thanks!"},"comment":{"url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/comments/418676166","html_url":"https://github.com/processone/ejabberd-contrib/issues/257#issuecomment-418676166","issue_url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/257","id":418676166,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODY3NjE2Ng==","user":{"login":"badlop","id":96807,"node_id":"MDQ6VXNlcjk2ODA3","avatar_url":"https://avatars1.githubusercontent.com/u/96807?v=4","gravatar_id":"","url":"https://api.github.com/users/badlop","html_url":"https://github.com/badlop","followers_url":"https://api.github.com/users/badlop/followers","following_url":"https://api.github.com/users/badlop/following{/other_user}","gists_url":"https://api.github.com/users/badlop/gists{/gist_id}","starred_url":"https://api.github.com/users/badlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badlop/subscriptions","organizations_url":"https://api.github.com/users/badlop/orgs","repos_url":"https://api.github.com/users/badlop/repos","events_url":"https://api.github.com/users/badlop/events{/privacy}","received_events_url":"https://api.github.com/users/badlop/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T10:09:02Z","updated_at":"2018-09-05T10:09:02Z","author_association":"MEMBER","body":"Thanks for reporting!"}}
{"actor":{"display_login":"badlop"}}