1 Jun 2012 02:16
Re: Net::RabbitMQ::get() fails with unexpected header?
Nevermind, the reason is that the documentation is missing the $options hash description for get(). To fix it, one needs to add { no_ack => 0 } if you're using transactions.
-James
On Wed, May 30, 2012 at 12:46 PM, iceblaze <iceblaze-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hello,
I am attempting to run the function as follows:
try {
$successful = 1;
$msg = $self->{_rabbit}->get($self->{_channel}, $self->{_queue});
} catch {
$successful = 0;
$self->error_handler("get - $_");
};
which should work, and this does work when i use recv(), but when I try to use get()
F::Rabbit::__ANON__('Unexpected header 1! at F/Rabbit.pm line...') called at /usr/lib/perl5/site_perl/5.8.8/Try/Tiny.pm line 100
Does anyone know what the unexpected header could be, or how I can go about troubleshooting this?
Thanks!
-James
--
"Of course, the actual government of any computer is run by that fascist dictator known as the operating system. But a wise dictator knows when to let the people think they're capitalists--and when to let them think they're communists." - Programming Perl third edition
--
"Of course, the actual government of any computer is run by that fascist dictator known as the operating system. But a wise dictator knows when to let the people think they're capitalists--and when to let them think they're communists." - Programming Perl third edition
<div>
<p>Nevermind, the reason is that the documentation is missing the $options hash description for get(). To fix it, one needs to add { no_ack => 0 } if you're using transactions.<br><br>-James<br><br></p>
<div class="gmail_quote">
On Wed, May 30, 2012 at 12:46 PM, iceblaze <span dir="ltr"><<a href="mailto:iceblaze@..." target="_blank">iceblaze@...</a>></span> wrote:<br><blockquote class="gmail_quote">
Hello,<br><br>I am attempting to run the function as follows:<br><br><br> try {<br> $successful = 1;<br> $msg = $self->{_rabbit}->get($self->{_channel}, $self->{_queue});<br>
} catch {<br> $successful = 0;<br> $self->error_handler("get - $_");<br> };<br><br>which should work, and this does work when i use recv(), but when I try to use get() <br><br><br> F::Rabbit::__ANON__('Unexpected header 1! at F/Rabbit.pm line...') called at /usr/lib/perl5/site_perl/5.8.8/Try/Tiny.pm line 100<br><br>Does anyone know what the unexpected header could be, or how I can go about troubleshooting this?<br><br>Thanks!<br><br>-James<span class="HOEnZb"><br clear="all"><br>-- <br>"Of course, the actual government of any computer is run by that fascist dictator known as the operating system. But a wise dictator knows when to let the people think they're capitalists--and when to let them think they're communists." - Programming Perl third edition<br></span>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>"Of course, the actual government of any computer is run by that fascist dictator known as the operating system. But a wise dictator knows when to let the people think they're capitalists--and when to let them think they're communists." - Programming Perl third edition<br>
</div>
RSS Feed