[rabbitmq-discuss] Net::RabbitMQ::get() fails with unexpected header?

iceblaze iceblaze at gmail.com
Fri Jun 1 01:16:20 BST 2012


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 at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120531/53dd2177/attachment.htm>


More information about the rabbitmq-discuss mailing list