-
Notifications
You must be signed in to change notification settings - Fork 4
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
Access keys invalid? #66
Comments
Original comment by David . (Bitbucket: david__, GitHub: Unknown) I am currently encountering the same issue. Try removing the <> brackets and any blank spaces at the beggining and end of the keys.
replacing the keys as standard to see if it runs from there. There is also a time delay on creating keys and them beginning to work, not long but a small few minute delay. EDIT: Just fixed mine.
Hopefully that helps. |
Original comment by David Schlesinger (Bitbucket: david_schlesinger, GitHub: Unknown) I seem to be running into the same issue. I've got an active Amazon associates account set up to use the API, of the form "shXXXXXXXXXXX-20"; I created a new IAM user with a new access key pair, I've created a .amazon-product-api file which looks like
However when I try to do a simple test, I get an error that there's no AWS access key in their records. I'm sure I'm missing something boneheaded here, but I've been butting my head against this for a while now.
Any guidance or suggestions would be appreciated, thanks. |
Original comment by Josh M. (Bitbucket: macdonjo, GitHub: macdonjo) Did anyone get it to work? I'm not sure if strings should be in quotes. It uses the Python library, ConfigParser: https://docs.python.org/2/library/configparser.html I wrote a question here about the format that you guys might find helpful: http://stackoverflow.com/questions/37127587/what-format-should-the-file-for-configparser-be I read the source code for the API class and looked at the constructor. It is:
So I simply did as the first David said, but the associate ID is not 3rd, it's forth in the constructor, and that worked. |
Originally reported by Anonymous
Hello,
I'm unsure what is causing this - I've tried it with several different several access keys from Amazon. I am signed up for the Product Advertising. The config file is named amazon-product-api.cfg and is located in the folder C:\Users<my username>
The contents of the configuration file are as follows:
[Credentials]
access_key =
secret_key =
associate_tag =
Obviously, there aren't actually x's in the config file itself, just placeholders to get the point across
When I execute the sample script, it will return the following error:
raise _e(errors[e.code])
amazonproduct.errors.InvalidClientTokenId: InvalidClientTokenId: The AWS Access Key Id you provided does not exist in our records.
Have any of you encountered this before? Any ideas on resolving this?
The text was updated successfully, but these errors were encountered: