You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hitting an issue when calling DescribeDBInstances in the RDS or DocDB service with Filters. Below is a simple script to reproduce (you don't need to have any actual AWS resources created to reproduce).
#!/usr/bin/env perl
use Modern::Perl;
use Paws;
my $paws = Paws->new;
my $docdb = $paws->service('DocDB', region => 'us-east-1', max_attempts => 1);
my $results = $docdb->DescribeDBInstances(
Filters => [
{
Name => 'db-cluster-id',
Values => [ 'test-cluster' ]
}
]
);
When I run the above script I get the following error
$ ./test.pl
An internal error has occurred. Please try your query again at a later time.
Trace begun at /usr/local/share/perl5/Paws/Net/XMLResponse.pm line 45
Paws::Net::XMLResponse::process('Paws::Net::XMLResponse=HASH(0x42178e8)', 'Paws::DocDB::DescribeDBInstances=HASH(0x42b1dc8)', 'Paws::Net::APIResponse=HASH(0x43aeda8)') called at /usr/local/share/perl5/Paws/Net/Caller.pm line 46
Paws::Net::Caller::caller_to_response('Paws::Net::Caller=HASH(0x194ebc0)', 'Paws::DocDB=HASH(0x1955310)', 'Paws::DocDB::DescribeDBInstances=HASH(0x42b1dc8)', 'Paws::Net::APIResponse=HASH(0x43aeda8)') called at /usr/local/share/perl5/Paws/Net/RetryCallerRole.pm line 19
Paws::Net::RetryCallerRole::do_call('Paws::Net::Caller=HASH(0x194ebc0)', 'Paws::DocDB=HASH(0x1955310)', 'Paws::DocDB::DescribeDBInstances=HASH(0x42b1dc8)') called at /usr/local/share/perl5/Paws/DocDB.pm line 138
Paws::DocDB::DescribeDBInstances('Paws::DocDB=HASH(0x1955310)', 'Filters', 'ARRAY(0x35a5440)') called at test.pl line 9
After some digging, it appears that the wrong http call parameters are being generated and after making the following change I don't hit the error anymore (and if you have AWS resource you will get results).
I'm hitting an issue when calling DescribeDBInstances in the RDS or DocDB service with Filters. Below is a simple script to reproduce (you don't need to have any actual AWS resources created to reproduce).
When I run the above script I get the following error
After some digging, it appears that the wrong http call parameters are being generated and after making the following change I don't hit the error anymore (and if you have AWS resource you will get results).
( The difference in the line is
request_name => 'Values'
vsValue
)I'm not sure if the above hack is really the fix or if there is some other issue going on here and the above just happens to make things work.
Any thoughts?
The text was updated successfully, but these errors were encountered: