{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"prosody mod_muc_log_http error","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/207 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"207\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">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)\r\nstack traceback:\r\n        [C]: in function 'pairs'\r\n        ...ib\/prosody\/modules\/muc_log_http\/mod_muc_log_http.lua:111: in function 'generate_room_list'\r\n        ...ib\/prosody\/modules\/muc_log_http\/mod_muc_log_http.lua:681: in function &lt;...ib\/prosody\/modules\/muc_log_http\/mod_muc_log_http.lua:649&gt;\r\n        (tail call): ?\r\n        \/usr\/lib\/prosody\/util\/events.lua:67: in function 'fire_event'\r\n        \/usr\/lib\/prosody\/net\/http\/server.lua:221: in function &lt;\/usr\/lib\/prosody\/net\/http\/server.lua:164&gt;\r\n        (tail call): ?\r\n        [C]: in function 'xpcall'\r\n        \/usr\/lib\/prosody\/net\/http\/server.lua:108: in function 'process_next'\r\n        \/usr\/lib\/prosody\/net\/http\/server.lua:124: in function 'success_cb'\r\n        \/usr\/lib\/prosody\/net\/http\/parser.lua:154: in function 'feed'\r\n        \/usr\/lib\/prosody\/net\/http\/server.lua:150: in function &lt;\/usr\/lib\/prosody\/net\/http\/server.lua:149&gt;\r\n        (tail call): ?\r\n        \/usr\/lib\/prosody\/net\/server_select.lua:854: in function &lt;\/usr\/lib\/prosody\/net\/server_select.lua:836&gt;\r\n        [C]: in function 'xpcall'\r\n        \/usr\/bin\/prosody:376: in function 'loop'\r\n        \/usr\/bin\/prosody:407: in main chunk\r\n        [C]: ?\r\n<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/207\/rev-raw\/b02038d577d08086ad4c4bdce40a58fce13f3b6c\/phork0.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/207#phork0.txt\">phork0.txt<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">debugging mod_muc_log_http.lua:\r\n\r\n- get_room_list() does not seem to return a table\r\n- which can happen when component or muc is not set\r\n- component is of type &quot;table&quot;\r\n- muc is of type &quot;nil&quot; - so this is the problem\r\n\r\n\r\ndebugging output via::\r\n\r\n  module:log(&quot;info&quot;, type(muc));\r\n  module:log(&quot;info&quot;, muc);\r\n\r\ninstead of restarting prosody, connect via telnet to mod_admin_telnet console and reload the module. it reloads the whole module code::\r\n\r\n  module:reload('muc_log_http')\r\n\r\nProblem source: mod_muc_log_http was loaded in globals modules_enabled section.<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/207\/rev-raw\/b02038d577d08086ad4c4bdce40a58fce13f3b6c\/phork1.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/207#phork1.txt\">phork1.txt<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
