Skip Menu |

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

Report information
The Basics
Id: 71973
Status: resolved
Priority: 0/
Queue: Net-Amazon

People
Owner: Nobody in particular
Requestors: cpan [...] hudghton.co.uk
Cc:
AdminCc:

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



Subject: Required parameters include AssociateTag
Amazon now require the parameter AssociateTag to be passed. I tried adding this myself to the "new" call, but it didn't work. The error given is: Error: Your request is missing required parameters. Required parameters include AssociateTag. I don't have much knowledge of Perl, so was hoping a patch could be released? Or if there's a simple edit I can make to the module, please let me know as currently I can't use the module at all.
From: cpan [...] hudghton.co.uk
I have hardcoded one of my associate tag's into Amazon.pm, line 165 for anyone who has the same issue (it's not ideal I know, but at least now it works). On Thu Oct 27 07:04:29 2011, JonUK wrote: Show quoted text
> Amazon now require the parameter AssociateTag to be passed. I tried > adding this myself to the "new" call, but it didn't work. > > The error given is: > > Error: Your request is missing required parameters. Required
parameters Show quoted text
> include AssociateTag. > > I don't have much knowledge of Perl, so was hoping a patch could be > released? > > Or if there's a simple edit I can make to the module, please let me > know as currently I can't use the module at all.
I ran the asin script in eg/ directory, and it correctly returned results. I assume the AssociateTag is required when performing specific operations, but I do not know what operations they are. Would you please send me that information when you have a chance. Thanks!
From: cpan [...] hudghton.co.uk
Hi, thanks for looking at this. An example command that caused the above error: my $ua = Net::Amazon->new(token => 'xxx', secret_key => xxx', locale => 'uk', max_pages=>"1"); my $resp = $ua->search(ean =>$ean_fetch, mode=>"electronics"); Also, as above for setting $ua then: my $resp = $ua->search(browsenode=>$_,mode=>"Electronics", sort =>"salesrank", page =>"1"); caused the same error. I think I might know why you're not getting the issue either. The changes were made to the UK API on October 26th (which is when the above stopped working): https://affiliate- program.amazon.co.uk/gp/advertising/api/detail/main.html However, on the US version of the page, the date is listed as November 1st: https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html Thanks again for your time, and great module btw!
I added the associate_tag parameter to resolve this issue, and I made it mandatory. I would very appreciate if you could run against the latest release, and see if it works for you. I update to the latest WSDL to avoid yet another issue in Feb 2012. Thanks again for the bug report!