<div dir="ltr">Hello all,<div><br></div><div style>I try to import a json config via rabbitmqadmin, it return 500 error like below. Some json configure</div><div style>could be imported through gui without problem (login as guest:guest).</div>

<div style><br></div><div style>Anybody has any idea?</div><div style><br></div><div style><div>[vagrant@rabbit tmp]$ �./rabbitmqadmin import rabbit_conf.json�</div><div>Traceback (most recent call last):</div><div>� File &quot;./rabbitmqadmin&quot;, line 914, in &lt;module&gt;</div>

<div>� � main()</div><div>� File &quot;./rabbitmqadmin&quot;, line 354, in main</div><div>� � method()</div><div>� File &quot;./rabbitmqadmin&quot;, line 489, in invoke_import</div><div>� � self.post(&quot;/definitions&quot;, definitions)</div>

<div>� File &quot;./rabbitmqadmin&quot;, line 383, in post</div><div>� � return self.http(&quot;POST&quot;, &quot;/api%s&quot; % path, body)</div><div>� File &quot;./rabbitmqadmin&quot;, line 421, in http</div><div>� � % (resp.status, resp.reason, path, resp.read()))</div>

<div>Exception: Received 500 Internal Server Error for path /api/definitions</div><div>&lt;html&gt;&lt;head&gt;&lt;title&gt;500 Internal Server Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Internal Server Error&lt;/h1&gt;The server encountered an error while processing this request:&lt;br&gt;&lt;pre&gt;{error,{error,{case_clause,{null}},</div>

<div>� � � � � � � [{rabbit_mgmt_format,&#39;-to_amqp_table/1-lc$^0/1-0-&#39;,1,[]},</div><div>� � � � � � � �{rabbit_mgmt_wm_definitions,add_queue,1,[]},</div><div>� � � � � � � �{rabbit_mgmt_wm_definitions,&#39;-for_all/3-lc$^0/1-0-&#39;,2,[]},</div>

<div>� � � � � � � �{rabbit_mgmt_wm_definitions,apply_defs,3,[]},</div><div>� � � � � � � �{webmachine_resource,resource_call,3,[]},</div><div>� � � � � � � �{webmachine_resource,do,3,[]},</div><div>� � � � � � � �{webmachine_decision_core,resource_call,1,[]},</div>

<div>� � � � � � � �{webmachine_decision_core,accept_helper,0,[]}]}}&lt;/pre&gt;&lt;P&gt;&lt;HR&gt;&lt;ADDRESS&gt;mochiweb+webmachine web server&lt;/ADDRESS&gt;&lt;/body&gt;&lt;/html&gt;</div><div><br></div><div><br></div>

<div><br></div></div></div>