[rabbitmq-discuss] 500 error when import config
Chengwei Ding
chengwei.ding at klarna.com
Thu May 30 16:46:13 BST 2013
Hello all,
I try to import a json config via rabbitmqadmin, it return 500 error like
below. Some json configure
could be imported through gui without problem (login as guest:guest).
Anybody has any idea?
[vagrant at rabbit tmp]$ ./rabbitmqadmin import rabbit_conf.json
Traceback (most recent call last):
File "./rabbitmqadmin", line 914, in <module>
main()
File "./rabbitmqadmin", line 354, in main
method()
File "./rabbitmqadmin", line 489, in invoke_import
self.post("/definitions", definitions)
File "./rabbitmqadmin", line 383, in post
return self.http("POST", "/api%s" % path, body)
File "./rabbitmqadmin", line 421, in http
% (resp.status, resp.reason, path, resp.read()))
Exception: Received 500 Internal Server Error for path /api/definitions
<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}},
[{rabbit_mgmt_format,'-to_amqp_table/1-lc$^0/1-0-',1,[]},
{rabbit_mgmt_wm_definitions,add_queue,1,[]},
{rabbit_mgmt_wm_definitions,'-for_all/3-lc$^0/1-0-',2,[]},
{rabbit_mgmt_wm_definitions,apply_defs,3,[]},
{webmachine_resource,resource_call,3,[]},
{webmachine_resource,do,3,[]},
{webmachine_decision_core,resource_call,1,[]},
{webmachine_decision_core,accept_helper,0,[]}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine
web server</ADDRESS></body></html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130530/3b1f3c02/attachment.htm>
More information about the rabbitmq-discuss
mailing list