PDA

View Full Version : Custom Scan problem witn Amazon scans (400: Bad request)



el_jefe
2009-08-25, 09:13
Hi Guys!

I already submitted that as a bug report on Erland's Google Code page, but I thought it won't hurt posting it here too, as other people might be having the same issues.

I am using Custom Scan on SqueezeCenter 7.3.3 installed on Widows 7. When I try to scan I get the following errors:


1327] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Aerosmith by Aerosmith: 400 Bad Request
[09-08-23 12:44:07.4276] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Big Ones by Aerosmith: 400 Bad Request

[09-08-23 12:44:08.7380] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Classics Live! Complete by Aerosmith: 400 Bad Request
[09-08-23 12:44:10.0328] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Done With Mirrors by Aerosmith: 400 Bad Request

[09-08-23 12:44:11.3120] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Draw the Line by Aerosmith: 400 Bad Request
[09-08-23 12:44:12.6068] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Get Your Wings by Aerosmith: 400 Bad Request

[09-08-23 12:44:13.8860] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Just Push Play by Aerosmith: 400 Bad Request
[09-08-23 12:44:15.1652] Plugins::CustomScan::Modules::Amazon::scanAlbum (178) Unable to retrieve amazon.com data for Live! Bootleg by Aerosmith: 400 Bad Request


I've entered my Amazon Access Key correctly, but it refuses to work.

Here's the server info:

Version: 7.3.3 - 27044 @ Mon Jun 15 15:14:08 PDT 2009
Server IP Address: 192.168.0.102
Server HTTP Port Number: 9000
Operating system: Windows 7 7100
Platform Architecture: 586
Perl Version: 5.8.8 - MSWin32-x86-multi-thread
MySQL Version: 5.0.22-community-nt
Total Players Recognized: 1


Thanks!

erland
2009-08-25, 10:18
Amazon has changed the interface, so I need to make the necessary adjustments to the Custom Scan code.

erland
2009-08-25, 11:48
If anyone likes to practice some perl programming, I believe what needs to be done to make the Amazon scanning module in Custom Scan work again is described on this page:
http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?rest-signature.html

The signature needs to be generated in CustomScan/Modules/Amazon.pm file in the scanAlbum function just above this line:


$log->debug("Calling url: $url\n");


I don't have the time to look at this myself at the moment.