If you are using Amazon Web Services or Product Advertising API, Amazon probably had been bugging you to sign your requests by August 15.

If you have not, by now all your requests should have failed. Some of you who are using amazon-ecs have contacted me last week, if there’s a patch to solve this issue; yep there is, the latest version, amazon-ecs-0.5.6 is able to sign your requests. Thanks to Dan Milne for the initial patch; I have also applied a few small patches to ensure that it works smoothly.

sudo gem update amazon-ecs

To sign the request you would need AWS secret key, which you can generate from Amazon associate account page.

# Include your secret key
Amazon::Ecs.options = {:aWS_access_key_id => [your developer token], :aWS_secret_key => [your secret access key]}

# Or you can also set it through 'configure' method
Amazon::Ecs.configure do |options|
    options[:aWS_access_key_id] = [your access key]
    options[:aWS_secret_key] = [you secret key]
end

# Search like usual
res = Amazon::Ecs.item_search('ruby', {:response_group => 'Medium', :sort => 'salesrank'})

5 Comments . Comments Feed . Trackback URI
Wed, 26 Aug 09 01:14 am . Dave wrote:

Hi Pluit Solutions,

I’ve been using amazon-ecs for over a year now and it has worked great on our site. Recently, the AWS queries stopped working. I’ve followed your instructions to update and there were no errors. But now, when I attempt to search, I’m getting this error:

undefined method `reset_key’ for nil:NilClass

Any idea why this is happening?

Thanks a lot for your hard work on this gem!

Dave

Wed, 26 Aug 09 10:33 am . Herryanto Siatono wrote:

Looks like ruby-hmac gem bug compatibility issue with ruby-1.9. http://isitruby19.com/ruby-hmac.

I’ll relook into this once I got the time.

Fri, 28 Aug 09 12:30 am . Herryanto Siatono wrote:

Just fix it, by signing request using openssl with fallback on ruby-hmac with SHA256 digest is not available.

Tue, 5 Jan 10 12:08 pm . shan wrote:

Hi, i wan to search from amazon UK website. what parameter to set ? How to do that ?

Fri, 8 Jan 10 05:07 am . Scott Schulthess wrote:

I’m still having this same problem as of version 0.5.7

Add Your Comment



(optional)