pplu / aws-sdk-perl

A community AWS SDK for Perl Programmers
Other
170 stars 94 forks source link

Paws::Route53::CreateHostedZone - Bad Request #254

Open bitnexus opened 6 years ago

bitnexus commented 6 years ago
my $ref = join '', (localtime);

  my $result = $r53svc->CreateHostedZone(
    CallerReference => $ref,
    Name                  => $kops_zone,
  );  

There's no issue with other Paws services or listing hosted zones for this Amazon account, only CreateHostedZone is giving me a problem. The request fails whatever string I use as a caller reference or zone name. My Paws version is 0.37.

Bad Request

Trace begun at /Library/Perl/5.18/Paws/Net/RestXMLResponse.pm line 24
Paws::Net::RestXMLResponse::process('Paws::Net::RestXMLResponse=HASH(0x7fe73eccb8f0)', 'Paws::Route53::CreateHostedZone=HASH(0x7fe73fd4b648)', 'Paws::Net::APIResponse=HASH(0x7fe73fd7c5c0)') called at /Library/Perl/5.18/Paws/Net/Caller.pm line 46
Paws::Net::Caller::caller_to_response('Paws::Net::Caller=HASH(0x7fe7439c0b48)', 'Paws::Route53=HASH(0x7fe73fca81b8)', 'Paws::Route53::CreateHostedZone=HASH(0x7fe73fd4b648)', 'Paws::Net::APIResponse=HASH(0x7fe73fd7c5c0)') called at /Library/Perl/5.18/Paws/Net/RetryCallerRole.pm line 19
Paws::Net::RetryCallerRole::do_call('Paws::Net::Caller=HASH(0x7fe7439c0b48)', 'Paws::Route53=HASH(0x7fe73fca81b8)', 'Paws::Route53::CreateHostedZone=HASH(0x7fe73fd4b648)') called at /Library/Perl/5.18/Paws/Route53.pm line 66
Paws::Route53::CreateHostedZone('Paws::Route53=HASH(0x7fe73fca81b8)', 'CallerReference', 'wtfdamnit', 'Name', 'the-zone') called at r53 line 55
main::zones('the-zone') called at r53 line 23
pplu commented 6 years ago

Hi,

Was this happening with older Paws? Or have you just tried with 0.37?

bitnexus commented 6 years ago

Hi,

I already had 0.37 installed, I haven't tried with an older version.

byterock commented 4 years ago

This should be fixed in this branch

https://github.com/byterock/aws-sdk-perl/tree/s3ObjectTagging

Do you have a test that can be run?