Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 118122
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: mitch [...] cgarbs.de
Cc:
AdminCc:

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



Subject: Finance::Quote::GoldMoney gives HTTP 404
Date: Wed, 28 Sep 2016 21:10:29 +0200
To: bug-Finance-Quote [...] rt.cpan.org
From: Christian Garbs <mitch [...] cgarbs.de>
Hello, it looks like the goldmoney.com website has changed and Finance::Quote::GoldMoney can't parse it any more. This demo program #!/usr/bin/perl use strict; use warnings; use Finance::Quote; use Data::Dumper; my $q = Finance::Quote->new; print Dumper( { $q->fetch('goldmoney','gold', 'silver', 'platinum') } ); print Dumper( { $q->fetch('goldmoney','gold', 'platinum') } ); print Dumper( { $q->fetch('goldmoney','gold') } ); gives this output: $VAR1 = { 'golderrormsg' => 'silver', 'goldsuccess' => 0 }; $VAR1 = { 'golderrormsg' => 'platinum', 'goldsuccess' => 0 }; $VAR1 = { 'golderrormsg' => 'HTTP error: 404 Not Found', 'goldsuccess' => 0 }; 'silver' and 'platinum' don't seem to work for an unknown reason, while only fetching 'gold' gives an HTTP 404 error. Regards Christian PS: While copying the code from the manpage/perldoc, I spotted the following error: %rates = $q->fetch('goldmoeny','gold', 'silver', 'platinum'); ^^ The first parameter to fetch should be 'goldmoney', not 'goldmoeny'. -- ....Christian.Garbs....................................https://www.cgarbs.de Mirrors should reflect a little before throwing back images. -- Jean Cocteau