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><div class="gmail_quote">
On Wed, May 30, 2012 at 12:46 PM, iceblaze <span dir="ltr"><<a href="mailto:iceblaze@gmail.com" target="_blank">iceblaze@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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"><font color="#888888"><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>
</font></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>