amazon-product-api icon indicating copy to clipboard operation
amazon-product-api copied to clipboard

The AWS Access Key Id you provided does not exist in our records.

Open Albert2522 opened this issue 7 years ago • 5 comments

Hi I checked my keys on a scratchpad but I still get this error whether it itemSearch or ItemLookUp

{ '$': { xmlns: 'http://ecs.amazonaws.com/doc/2013-08-01/' }, Error: [ { Code: [ 'InvalidClientTokenId' ], Message: [ 'The AWS Access Key Id you provided does not exist in our records.' ] } ], RequestId: [ 'ad5243d3-04b2-4bd7-8908-82789ed48233' ] }

Code:

const amazon_client = amazon.createClient({ awsID: 'smthg', awsSecret: 'smthg', awsTag: 'smthg' });

amazon_client.itemLookup({ idType: 'UPC', itemId: '884392579524' }).then(function(results) { console.log(JSON.stringify(results)); }).catch(function(err) { console.log(util.inspect(err, false, null)); });

Albert2522 avatar Apr 07 '17 17:04 Albert2522

where do you actually try to get the keys from?

there are so many from where to choose from

nick-preda avatar Apr 20 '17 09:04 nick-preda

Make sure you have specified the domain endpoint to match where your access key is registered for. e.g.

domain: 'webservices.amazon.co.uk'

budda avatar Jul 25 '17 23:07 budda

@budda Hi, just about to start using the library for a project I have an idea for.

I want to offer the ability to search multiple Amazon 'areas' Does this mean I will have to register with Amazon for each of those countries ? (ie like .ca, .za, etc) ?

AnthoniG avatar Aug 23 '17 09:08 AnthoniG

@AnthoniG yeah your credentials (key) needs to be registered for the country you want to search in, otherwise you'll get an API error.

budda avatar Aug 23 '17 10:08 budda

@budda Thanks for that. Guess looks like got some more registration forms to fill out then. One for each country I want to search in (which is a few lol)

Can I use the same account I used before? I registered .co.uk (because that is where I am based), so can I use that same one to register for .ca, .it, .za, etc ?

AnthoniG avatar Aug 23 '17 17:08 AnthoniG