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

Feature: Requests limit reached, try increasing throttling or wait before trying again #130

Open
ghost opened this issue Sep 6, 2024 · 1 comment
Labels
feature New feature or request

Comments

@ghost
Copy link

ghost commented Sep 6, 2024

try:
stock_availability = False
amazon = AmazonApi(key, secret, tag, 'IN',throttling=9)
item = amazon.get_items('B0BYHX2XGP')[0]
time.sleep(10)
if hasattr(item, 'offers') and hasattr(item.offers, 'listings'):
listings = item.offers.listings
if listings:
availability = listings[0].availability
if hasattr(availability, 'message'):
message = availability.message
count +=1
print('count increse',count)
if message and message.lower() == 'in stock':
stock_availability = True
else:
stock_availability = False
else:
stock_availability = False
else:
stock_availability = False
else:
stock_availability = False

except Exception as e:
    time.sleep(10)

While running the above for stock availability, the program gets failed in the try block and in expect block it gets printed for the error as 'Requests limit reached, try increasing throttling or wait before trying again' , even tried to increase the throttling time for several times still the same error occurs everytime.

Previously the above code was working fine, but since last few days code start getting failed.

@ghost ghost added the feature New feature or request label Sep 6, 2024
@s-blottk
Copy link

I can confirm having the same issue...

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

No branches or pull requests

1 participant