<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello!<br><br>I'm new to RabbitMQ (and Erlang too), trying to get message from<br>queue. Getting this:<br><br>=INFO REPORT==== 23-Mar-2010::11:24:47 ===<br>Negotiated maximums: (Channel = 0, Frame= 131072, Heartbeat=0)<br><br>=ERROR REPORT==== 23-Mar-2010::11:30:21 ===<br>** Generic server <0.49.0> terminating<br>** Last message in was {'$gen_cast',<br> {method,<br> {'basic.deliver',<br> <<"amq.ctag-/M/5ibuENfSOypENL/<br>Cc0g==">>,1,<br><br>false,<<"notifier">>,<<"notify.tick">>},<br> {content,60,none,<br> <<...>>,<br> [<<...content here....>>]}}}<br><br>** Reason for termination ==<br>** {badarg,[{dict,fetch,<br> [<<"amq.ctag-/M/5ibuENfSOypENL/Cc0g==">>,<br> {dict,0,16,16,8,80,48,<br> {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br>[]},<br> {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br>[],<br> []}}}]},<br> {amqp_channel,handle_regular_method,3},<br> {gen_server,handle_msg,5},<br> {proc_lib,init_p_do_apply,3}]}<br><br><br>Server info:<br>[{<<"product">>,longstr,<<"RabbitMQ">>},<br> {<<"version">>,longstr,<<"1.5.4">>},<br> {<<"platform">>,longstr,<<"Erlang/<br>OTP">>},<br> {<<"copyright">>,longstr,<br> <<"Copyright (C) 2007-2009 LShift Ltd.,<br>Cohesive Financial Technologies LLC., and Rabbit Technologies<br>Ltd.">>},<br> {<<"information">>,longstr,<br> <<"Licensed under the MPL. See<br><a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a>">>}]<br><br>Client:<br>changeset: 691:eea6142b6845<br>date: Mon Mar 15 15:23:43 2010 +1300<br>summary: Merge bug21949 into default<br><br>my code:<br>listen_loop(Channel, Q, Ticket) -><br> BasicConsume = #'basic.consume'{ticket = Ticket,<br> queue = Q,<br> nowait = true},<br> ok<br> = amqp_channel:call(Channel, BasicConsume),<br><br> %% If the registration was sucessful, the consumer will<br> %% be notified<br><br> receive<br> #'basic.consume_ok'{consumer_tag = Tag} -> ok<br> end,<br> receive<br> {#'basic.deliver'{exchange = Exchange},<br> Content} -><br> #content{payload_fragments_rev = [Payload]}<br> = Content,<br> io:format("Message received: ~p~n", [Payload])<br> end,<br><br> listen_loop(Channel, Q, Ticket).<br><br><br>I'm doing something in a wrong way, I guess...<br><br>Any help will be appreciated, thank you!<br><br></body></html>