Perl PAWS SelectObjectContent - "Precondition Failed"

101 views Asked by At

I receive a "Precondition Failed" error when I try to run:

my $obj = $s3->SelectObjectContent(
    Bucket              => 'MyBucket',
    Expression          => 'SELECT * FROM s3object s',
    ExpressionType      => 'SQL',
    InputSerialization  => {
        JSON => {
            Type => 'LINES'
        }
    },
    Key                 => 'MyKey',
    OutputSerialization => {
        JSON => {}
    } );

I followed https://metacpan.org/pod/Paws::S3::SelectObjectContent#RequestProgress-=%3E-Paws::S3::RequestProgress

I have successfully called "GetObject" using my bucket and key, so those are not responsible for the error.

0

There are 0 answers