[rabbitmq-discuss] JSONRPCError - Internal error: badmatch

Cameron Harris cameron at cameronharris.org
Wed Aug 4 16:06:05 BST 2010


Hi all,

I've installed rabbitmq on OS X 10.6 via MacPorts, and built and
installed the rabbitmq-jsonrpc, rabbitmq-jsonrpc-channel, mochiweb,
rabbitmq-mochiweb, rfc4627_jsonrpc plugins.

After installing, I went to the example page on localhost:55672, and
clicked the Simple JSONRPC test. I get the following output:

test_main
{"installGenericProxy":{"name":"open","idempotent":false,"params":
[{"name":"username","type":"str"},{"name":"password","type":"str"},
{"name":"sessionTimeout","type":"num"},
{"name":"virtualHost","type":"str"}]}}
open
JsonRPC error:
Service: "/rpc/rabbitmq"
Method: "open"
Params: ["guest","guest",5,null]
Response: {"version":"1.1","id":2,"error":
{"name":"JSONRPCError","code":500,"message":"Internal
error","error":"{{{badmatch,{error,{{badmatch,<0.13932.0>},
                   [{rabbit_jsonrpc_channel,init,1},
                    {gen_server,init_it,6},
                    {proc_lib,init_p_do_apply,3}]}}},
 [{rabbit_jsonrpc_channel,open,1},
  {rabbit_jsonrpc_channel_factory,handle_call,3},
  {gen_server,handle_msg,5},
  {proc_lib,init_p_do_apply,3}]},
 {gen_server,call,
            [<0.8986.0>,
             {jsonrpc,<<\"open\">>,
                      {obj,[{\"http_method\",<<\"POST\">>},
                            {\"http_query_parameters\",{obj,[]}},
                            {\"http_headers\",
                             {obj,[{\"accept\",<<\"*/*\">>},

{\"accept-charset\",<<\"ISO-8859-1,utf-8;q=0.7,*;q=0.7\">>},

{\"accept-encoding\",<<\"gzip,deflate\">>},

{\"accept-language\",<<\"en-us,en;q=0.5\">>},
                                   {\"cache-control\",<<\"no-cache\">>},
                                   {\"connection\",<<\"keep-alive\">>},
                                   {\"content-length\",<<\"74\">>},

{\"content-type\",<<\"application/json;charset=UTF-8\">>},
                                   {\"host\",<<\"localhost:55672\">>},
                                   {\"keep-alive\",<<\"115\">>},
                                   {\"pragma\",<<\"no-cache\">>},
                                   {\"referer\",<<\"
http://localhost:55672/rabbitmq_lib/www-examples/test/index.html\">>},
                                   {\"user-agent\",<<\"Mozilla/5.0
(Macintosh; IntelMac OS X 10.6; rv:2.0b3pre) Gecko/20100729
Minefield/4.0b3pre\">>},
                                   {\"x-json-rpc-timeout\",<<\"30000\">>},

{\"x-requested-with\",<<\"XMLHttpRequest\">>}]}},
                            {\"remote_peername\",<<\"127.0.0.1\">>},
                            {\"scheme\",<<\"http\">>}]},
                      [<<\"guest\">>,<<\"guest\">>,5,null]},
             30000]}}"}}
-------

The broker has started without any errors and appears to be
functioning, and when I tried the rabbitmq-status plugin, that worked
fine.

My rabbitmqctl status is:
Status of node rabbit at Bilbo ...
[{running_applications,
    [{rabbit_jsonrpc_channel,"RabbitMQ JSON-RPC Channels","0.01"},
     {rabbit,"RabbitMQ","1.8.1"},
     {os_mon,"CPO  CXC 138 46","2.2.5"},
     {sasl,"SASL  CXC 138 11","2.1.9.2"},
     {rfc4627_jsonrpc,"JSON RPC Service","0.01"},
     {rabbit_jsonrpc,"Rabbit JSON-RPC","0.01"},
     {rabbit_mochiweb,"RabbitMQ Mochiweb Embedding","0.01"},
     {mochiweb,"MochiMedia Web Server","1.3"},
     {crypto,"CRYPTO version 2","2.0"},
     {inets,"INETS  CXC 138 49","5.4"},
     {mnesia,"MNESIA  CXC 138 12","4.4.14"},
     {stdlib,"ERTS  CXC 138 10","1.17"},
     {kernel,"ERTS  CXC 138 10","2.14"}]},
 {nodes,[{disc,[rabbit at Bilbo]}]},
 {running_nodes,[rabbit at Bilbo]}]
...done.

Thanks,
Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100804/4269a2df/attachment.htm>


More information about the rabbitmq-discuss mailing list