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

TooManyRequests Error #32

Closed
peterstavrou opened this issue May 28, 2020 · 10 comments
Closed

TooManyRequests Error #32

peterstavrou opened this issue May 28, 2020 · 10 comments

Comments

@peterstavrou
Copy link

I'm getting the below error:

HTTP response body: {"__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."}]}

I have tried the demo code and have played around with the throttling but still no luck... Any ideas?

from amazon.paapi import AmazonAPI
amazon = AmazonAPI("x", "x", "x", "US", throttling=0.5)
product = amazon.get_product('B01N5IB20Q')
print(product.title)
@peterstavrou
Copy link
Author

peterstavrou commented Jun 7, 2020

US managed to fix itself but it is now happening with UK.

amazon = AmazonAPI(environ['ACCESS_TOKEN'], environ['ACCESS_SECRET'], environ['LR'], "UK", throttling=0.8)

product = amazon.search_products(item_count=2, keywords='toys')

@migcm
Copy link

migcm commented Jul 5, 2020

Same problem with "ES".

@moveax3
Copy link

moveax3 commented Jul 6, 2020

Confirm, has TooManyRequests problem even if make a single request with "ES".

@sergioteula
Copy link
Owner

Are you getting the same error when using the scratchpad? On the other hand, you can check API rates on this page, maybe your account has reached the usage limit and that's why you're getting the TooManyRequest error.

@yaph
Copy link

yaph commented Jul 16, 2020

I get the TooManyRequests error when I make a request to "DE" using an associate tag created for Germany both using this library and the scratchpad.

When I make a request to "US" with an US associate tag it works with the library and the scratchpad.

There are several related issues reported in the AWS forum https://forums.aws.amazon.com/ where commenters have mentioned request limits as a possible reason. I have no sales for DE during the past 30 days, but I do for US. So I apparently have a request limit of 0 for Germany, which explains the error.

@sergioteula
Copy link
Owner

I get the TooManyRequests error when I make a request to "DE" using an associate tag created for Germany both using this library and the scratchpad.

When I make a request to "US" with an US associate tag it works with the library and the scratchpad.

There are several related issues reported in the AWS forum https://forums.aws.amazon.com/ where commenters have mentioned request limits as a possible reason. I have no sales for DE during the past 30 days, but I do for US. So I apparently have a request limit of 0 for Germany, which explains the error.

Thanks for your comment, this is the first thing to check when getting the TooManyRequests error. If anyone else is getting this error due to a module malfunction, I will try to solve it.

@amannguptaggg
Copy link

Same issue , there is no solution on the internet for this problem I error . Because I am searching solution from last 1 year. Din't got anywhere any solution. If anyone have solution. Help will be appreciated.

@migcm
Copy link

migcm commented Sep 9, 2020

I continue with the same problem, the PA API should be enabled because I have met all the conditions, however, I keep getting the "TooManyRequests" error.

@Kies8
Copy link

Kies8 commented Mar 6, 2021

same

@sergioteula
Copy link
Owner

Since this error is related with Amazon and there's nothing we can do to solve it, I'm moving this to the discussions section and closing this issue. Please go here if you want to say something: #59

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

7 participants