-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Too Many Requests #8
Comments
Hi, note that As a result, Amazon answers with a nice |
Hi, I had the same problem, but I solved it by specifying the In the official documentation, the
However, if you omit the In my case, this confusion was caused by the fact that both the official documentation and this feature state that If you are suffering from the same problem, adding the |
Thank you @SaekiTominaga. Well explained. I will make an update to avoid confusion. |
Hello @SaekiTominaga , after careful consideration, I decided to keep the
This is to keep it simple and make it so it mimics a scratchpad-like experience. I will update the documentation to avoid confusion. Thank you. |
I get this error even after setting the marketplace (I use www.amazon.it). |
@mattiaz9 I've got the same issue but some days ago it automagically disappeared. This is my "dependencies": {
"amazon-paapi": "^1.0.5",
"dotenv": "^10.0.0"
} this is my working code: //amazon_utils.js
const AmazonPaapi = require('amazon-paapi');
require('dotenv').config();
const commonParameters = {
'AccessKey' : process.env.AMAZON_ACCESS_KEY,
'SecretKey' : process.env.AMAZON_SECRET_KEY,
'PartnerTag' : process.env.AMAZON_PARTNER_TAG_API, // yourtag-20
'PartnerType': 'Associates',
'Marketplace': 'www.amazon.it'
};
let requestParameters = {
'ItemIdType': 'ASIN',
'Condition' : 'New',
'Resources' : [
'Images.Primary.Large',
'ItemInfo.ContentInfo',
'ItemInfo.Title',
'Offers.Listings.Price'
]
};
exports.getItemsFromAmazonByItemsCode = (productsArray) => {
return new Promise( async (resolve)=>{
requestParameters.ItemIds = productsArray;
let data = await AmazonPaapi.GetItems(commonParameters, requestParameters);
resolve(data);
});
} I call it with: const AmazonUtils = require('../utils/amazon_utils');
async function(){
//some code
let data = await AmazonUtils.getItemsFromAmazonByItemsCode([asinResult.ASIN]);
//some code
} Hope you find it useful, |
Hello, I'm trying to use this package to search for a product and generate an affiliate link. I'm also getting the TooManyRequestsException error. This is trying to make a single search request. Would appreciate any guidance, thanks! My code:
|
I am also getting the same error |
Please try to test and make a request via amazon scratchpad and see if you get the same message. |
Try an affiliate key with at least 3 sales for the past 180 days. That is one of the requirements amazon apparently imposes. If your key is new and made no sales yet, then this is probably the cause. |
I have more than 3 sales in last 30 days still getting this issue |
When I try to run the example code (Obviously with my own keys) to search for a Harry Potter book it drops that error. I use the "amazon-pa-api50" and I have no problem when searching with the number of requests
text: '{"__type":"com.amazon.paapi5#TooManyRequestsException","Errors":[{"Code":"TooManyRequests","Message":"The request was denied due to request throttling. Please verify the number of requests made per second to the Amazon Product Advertising API."}]}',
The text was updated successfully, but these errors were encountered: