ejabberd - Comments for "No module is handling this query While querying roster " https://www.ejabberd.im/forum/28700/no-module-handling-query-while-querying-roster en Thanks for the reply. The https://www.ejabberd.im/forum/28700/no-module-handling-query-while-querying-roster#comment-67372 <p>Thanks for the reply. The issue was with query code</p> <p><code> var iq = $iq({to : &quot;xxx.xxx.xxx&quot;, type: &#039;get&#039;}).c(&#039;query&#039;, { xmlns: Strophe.NS.ROSTER }); </code></p> <p>the <code> to : &quot;xxx.xxx.xxx&quot;</code> was not needed.</p> Fri, 10 Mar 2017 15:48:45 +0000 shameemkm comment 67372 at https://www.ejabberd.im Try to login with a typical https://www.ejabberd.im/forum/28700/no-module-handling-query-while-querying-roster#comment-67371 <p>Try to login with a typical Jabber client, like Psi, Gajim... Does it receive the roster properly? If so, then maybe the problem is in your library, or in your code, or maybe ejabberd and that library do not communicate correctly.</p> <p>You can debug a little more the client-server communication using a network sniffer. The purpose is that you compare what Psi sends that works correctly, and what does your query send that works incorrectly.</p> <p>I use this one, but any other can help (or you can set ejabberd loglevel to 5):</p> <div class="codeblock"><code>$ sudo tcpflow -i lo -Cg port 5222<br />tcpflow: listening on lo<br />...<br />&lt;iq id=&#039;332:993826&#039; xml:lang=&#039;es&#039; type=&#039;get&#039;&gt;&lt;query xmlns=&#039;jabber:iq:roster&#039;/&gt;&lt;/iq&gt;<br />&lt;iq xml:lang=&#039;es&#039; to=&#039;user1@localhost/tka1&#039; from=&#039;user1@localhost&#039; type=&#039;result&#039; id=&#039;332:993826&#039;&gt;&lt;query xmlns=&#039;jabber:iq:roster&#039;/&gt;&lt;/iq&gt;<br />...</code></div> Thu, 09 Mar 2017 17:12:01 +0000 badlop comment 67371 at https://www.ejabberd.im