Skip Menu |

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

Report information
The Basics
Id: 114135
Status: open
Priority: 0/
Queue: Net-Amazon

People
Owner: Nobody in particular
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

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



Subject: ISBN13 beginning with 979 not supported?
$ perl -MDDS -MNet::Amazon -E '$r= Net::Amazon->new(associate_tag=>$TAG,token=>$TOKEN,secret_key=>$SECRET)->search(isbn=>"9791022400640"); say Dump($r);' $Net_Amazon_Response_ISBN1 = bless( { items => [], messages => [ '9791022400640 is not a valid value for ItemId. Please change this value and retry your request.' ], status => '', total_results => undef, xmlref => {} }, 'Net::Amazon::Response::ISBN' ); But nowadays books with ISBN beginning with 979 start to appear... (try ISBN above on amazon website) French locale (fr_FR.UTF-8) btw, if that can help. perl v5.22.1
The error message is coming from Amazon's API as far as I can tell. There's nothing in Net::Amazon that is making an assumption about an ISBN. My guess would be to try a newer WSDL, and see if that fixes the issue. Is this something you can try?
On Tue May 03 13:05:44 2016, BOUMENOT wrote: Show quoted text
> My guess would be to try a newer WSDL, and see if that fixes the > issue. Is this something you can try?
What is a WSDL? How can I get a newer one?
Show quoted text
> What is a WSDL? How can I get a newer one?
The WSDL is specified in Amazon.pm (http://cpansearch.perl.org/src/BOUMENOT/Net-Amazon-0.62/lib/Net/Amazon.pm) at the top of the file. The latest version that I can find is 2013-08-01. You can try changing the version in Amazon.pm from 2011-08-01 to 2013-08-01. I do not know if this will help, but it's the fastest "fix".