Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Albert2522 opened this issue Apr 7, 2017 · 5 comments
Open

Comments

@Albert2522
Copy link

Albert2522 commented Apr 7, 2017

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));
});

@nick-preda
Copy link

where do you actually try to get the keys from?

there are so many from where to choose from

@budda
Copy link
Contributor

budda commented Jul 25, 2017

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

domain: 'webservices.amazon.co.uk'

@AnthoniG
Copy link

@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) ?

@budda
Copy link
Contributor

budda commented Aug 23, 2017

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

@AnthoniG
Copy link

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants