Skip Menu |

This queue is for tickets about the Amazon-SQS-Simple CPAN distribution.

Report information
The Basics
Id: 41137
Status: resolved
Priority: 0/
Queue: Amazon-SQS-Simple

People
Owner: swhitaker [...] cpan.org
Requestors: hurleyit+bitcard [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Receiving multiple messages
Amazon::SQS::Simple 1.01 Perl: v5.8.7 built for x86_64-linux-gnu-thread-multi I am having an issue retrieving multiple messages in one request. The first issue is that the documentation says to pass in NumberOfMessages but actually one needs to pass in the param MaxNumberOfMessages. I know, a small detail, but it took me a little while to figure it out. Once I made that change, I received the following error: Pseudo-hashes are deprecated at /usr/share/perl5/Amazon/SQS/Simple/Message.pm line 12. No such pseudo-hash field "Version" at /usr/share/perl5/Amazon/SQS/Simple/Message.pm line 12. Code: my $access_key = '********'; # Your AWS Access Key ID my $secret_key = '********'; # Your AWS Secret Key my $sqs = new Amazon::SQS::Simple($access_key, $secret_key); my $q = $sqs->CreateQueue('QUEUENAME'); my $msg = $q->ReceiveMessage(MaxNumberOfMessages => 2);
Yup, sorry about that. I've got a fix, will try to get it checked in to CPAN by tomorrow. (This will be Amazon::SQS::Simple 1.03) On Fri Nov 21 16:04:50 2008, hurleyit wrote: Show quoted text
> Amazon::SQS::Simple 1.01 > Perl: v5.8.7 built for x86_64-linux-gnu-thread-multi > > I am having an issue retrieving multiple messages in one request. The > first issue is that the documentation says to pass in NumberOfMessages > but actually one needs to pass in the param MaxNumberOfMessages. I > know, a small detail, but it took me a little while to figure it out. > > Once I made that change, I received the following error: > > Pseudo-hashes are deprecated at > /usr/share/perl5/Amazon/SQS/Simple/Message.pm line 12. > No such pseudo-hash field "Version" at > /usr/share/perl5/Amazon/SQS/Simple/Message.pm line 12. > > Code: > my $access_key = '********'; # Your AWS Access Key ID > my $secret_key = '********'; # Your AWS Secret Key > my $sqs = new Amazon::SQS::Simple($access_key, $secret_key); > my $q = $sqs->CreateQueue('QUEUENAME'); > my $msg = $q->ReceiveMessage(MaxNumberOfMessages => 2);
Fixed in 1.03