<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>prosody mod_muc_log_http error</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/207 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="207"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;Jul 08 08:46:26 http.server     error   Traceback[httpserver]: ...ib/prosody/modules/muc_log_http/mod_muc_log_http.lua:111: bad argument #1 to 'pairs' (table expected, got no value)&#13;
stack traceback:&#13;
        [C]: in function 'pairs'&#13;
        ...ib/prosody/modules/muc_log_http/mod_muc_log_http.lua:111: in function 'generate_room_list'&#13;
        ...ib/prosody/modules/muc_log_http/mod_muc_log_http.lua:681: in function &amp;lt;...ib/prosody/modules/muc_log_http/mod_muc_log_http.lua:649&amp;gt;&#13;
        (tail call): ?&#13;
        /usr/lib/prosody/util/events.lua:67: in function 'fire_event'&#13;
        /usr/lib/prosody/net/http/server.lua:221: in function &amp;lt;/usr/lib/prosody/net/http/server.lua:164&amp;gt;&#13;
        (tail call): ?&#13;
        [C]: in function 'xpcall'&#13;
        /usr/lib/prosody/net/http/server.lua:108: in function 'process_next'&#13;
        /usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'&#13;
        /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'&#13;
        /usr/lib/prosody/net/http/server.lua:150: in function &amp;lt;/usr/lib/prosody/net/http/server.lua:149&amp;gt;&#13;
        (tail call): ?&#13;
        /usr/lib/prosody/net/server_select.lua:854: in function &amp;lt;/usr/lib/prosody/net/server_select.lua:836&amp;gt;&#13;
        [C]: in function 'xpcall'&#13;
        /usr/bin/prosody:376: in function 'loop'&#13;
        /usr/bin/prosody:407: in main chunk&#13;
        [C]: ?&#13;
&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/207/rev-raw/b02038d577d08086ad4c4bdce40a58fce13f3b6c/phork0.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/207#phork0.txt"&gt;phork0.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;debugging mod_muc_log_http.lua:&#13;
&#13;
- get_room_list() does not seem to return a table&#13;
- which can happen when component or muc is not set&#13;
- component is of type &amp;quot;table&amp;quot;&#13;
- muc is of type &amp;quot;nil&amp;quot; - so this is the problem&#13;
&#13;
&#13;
debugging output via::&#13;
&#13;
  module:log(&amp;quot;info&amp;quot;, type(muc));&#13;
  module:log(&amp;quot;info&amp;quot;, muc);&#13;
&#13;
instead of restarting prosody, connect via telnet to mod_admin_telnet console and reload the module. it reloads the whole module code::&#13;
&#13;
  module:reload('muc_log_http')&#13;
&#13;
Problem source: mod_muc_log_http was loaded in globals modules_enabled section.&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/207/rev-raw/b02038d577d08086ad4c4bdce40a58fce13f3b6c/phork1.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/207#phork1.txt"&gt;phork1.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
