<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 "./rabbitmqadmin", line 914, in <module></div>
<div> main()</div><div> File "./rabbitmqadmin", line 354, in main</div><div> method()</div><div> File "./rabbitmqadmin", line 489, in invoke_import</div><div> self.post("/definitions", definitions)</div>
<div> File "./rabbitmqadmin", line 383, in post</div><div> return self.http("POST", "/api%s" % path, body)</div><div> File "./rabbitmqadmin", 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><html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>{error,{error,{case_clause,{null}},</div>
<div> [{rabbit_mgmt_format,'-to_amqp_table/1-lc$^0/1-0-',1,[]},</div><div> {rabbit_mgmt_wm_definitions,add_queue,1,[]},</div><div> {rabbit_mgmt_wm_definitions,'-for_all/3-lc$^0/1-0-',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,[]}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html></div><div><br></div><div><br></div>
<div><br></div></div></div>