{"action":"created","issue":{"url":"https://api.github.com/repos/processone/ejabberd/issues/515","labels_url":"https://api.github.com/repos/processone/ejabberd/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd/issues/515/comments","events_url":"https://api.github.com/repos/processone/ejabberd/issues/515/events","html_url":"https://github.com/processone/ejabberd/issues/515","id":66625368,"number":515,"title":"[websockets] crashes when used with jappix","user":{"login":"mathiasertl","id":6200103,"avatar_url":"https://avatars.githubusercontent.com/u/6200103?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasertl","html_url":"https://github.com/mathiasertl","followers_url":"https://api.github.com/users/mathiasertl/followers","following_url":"https://api.github.com/users/mathiasertl/following{/other_user}","gists_url":"https://api.github.com/users/mathiasertl/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasertl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasertl/subscriptions","organizations_url":"https://api.github.com/users/mathiasertl/orgs","repos_url":"https://api.github.com/users/mathiasertl/repos","events_url":"https://api.github.com/users/mathiasertl/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasertl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-06T15:08:34Z","updated_at":"2015-04-06T15:59:34Z","closed_at":null,"body":"When using Jappix 1.1.3 and the new ejabberd websocket implementation, Jappix does seem to connect (so the roster shows up, and I can eventually even chat), but I do get messages that I've been disconnected all the time. Whenever Jappix reconnects, I get these messages in ejabberds error.log (timestamps stripped for readability):\r\n\r\n```\r\n<0.20886.0> gen_fsm <0.20886.0> in state loop terminated with reason: bad argument in call to erlang:'++'(<<\"<iq xmlns=\\\"jabber:client\\\" to=\\\"jabber.at\\\" type=\\\"get\\\" id=\\\"JSJaCID_0\\\"><services xmlns=\\\"urn:xmpp:ex...\">>, <<\"<iq xmlns=\\\"jabber:client\\\" to=\\\"jabber.at\\\" type=\\\"get\\\" id=\\\"JSJaCID_1\\\"><services xmlns=\\\"http://jabb...\">>) in ejabberd_http_ws:handle_info/3 line 200\r\n<0.20886.0> CRASH REPORT Process <0.20886.0> with 1 neighbours exited with reason: bad argument in call to erlang:'++'(<<\"<iq xmlns=\\\"jabber:client\\\" to=\\\"jabber.at\\\" type=\\\"get\\\" id=\\\"JSJaCID_0\\\"><services xmlns=\\\"urn:xmpp:ex...\">>, <<\"<iq xmlns=\\\"jabber:client\\\" to=\\\"jabber.at\\\" type=\\\"get\\\" id=\\\"JSJaCID_1\\\"><services xmlns=\\\"http://jabb...\">>) in ejabberd_http_ws:handle_info/3 line 200 in gen_fsm:terminate/7 line 611\r\n<0.661.0> Supervisor ejabberd_http_sup had child undefined started with {ejabberd_http,start_link,undefined} at <0.20885.0> exit with reason bad argument in call to erlang:'++'(<<\"<iq xmlns=\\\"jabber:client\\\" to=\\\"jabber.at\\\" type=\\\"get\\\" id=\\\"JSJaCID_0\\\"><services xmlns=\\\"urn:xmpp:ex...\">>, <<\"<iq xmlns=\\\"jabber:client\\\" to=\\\"jabber.at\\\" type=\\\"get\\\" id=\\\"JSJaCID_1\\\"><services xmlns=\\\"http://jabb...\">>) in ejabberd_http_ws:handle_info/3 line 200 in context child_terminated\r\n```\r\n\r\n... I see the same log messages also for other log-messages (e.g. presence stanzas)."},"comment":{"url":"https://api.github.com/repos/processone/ejabberd/issues/comments/90124255","html_url":"https://github.com/processone/ejabberd/issues/515#issuecomment-90124255","issue_url":"https://api.github.com/repos/processone/ejabberd/issues/515","id":90124255,"user":{"login":"prefiks","id":61998,"avatar_url":"https://avatars.githubusercontent.com/u/61998?v=3","gravatar_id":"","url":"https://api.github.com/users/prefiks","html_url":"https://github.com/prefiks","followers_url":"https://api.github.com/users/prefiks/followers","following_url":"https://api.github.com/users/prefiks/following{/other_user}","gists_url":"https://api.github.com/users/prefiks/gists{/gist_id}","starred_url":"https://api.github.com/users/prefiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prefiks/subscriptions","organizations_url":"https://api.github.com/users/prefiks/orgs","repos_url":"https://api.github.com/users/prefiks/repos","events_url":"https://api.github.com/users/prefiks/events{/privacy}","received_events_url":"https://api.github.com/users/prefiks/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T15:59:34Z","updated_at":"2015-04-06T15:59:34Z","body":"Hello Mathias,\r\n\r\nI did just pushed commit that i think should fix this problem. I am not able to reproduce this bug, so if you would have a moment to test it and verify that it indeed fixes it, i would be grateful."}}