- Newest
- Most votes
- Most comments
Based on your description, you're experiencing a common issue with the Amazon Product Advertising API (PA-API) where throttling errors occur despite having active credentials.
There are several potential causes for your situation:
-
Throttling Implementation: The PA-API uses request throttling to limit the number of API calls. Even though your account shows as "Active," you might be hitting rate limits. The error "TooManyRequests" suggests this is happening on your first request, which indicates there might be an issue with how the API is tracking your usage.
-
Credential Synchronization: When you deleted your old keys and created new ones, there might be a synchronization delay. In some cases, it can take up to 72 hours for new API keys to become fully active across all Amazon systems, even though they show as "Active" in your dashboard.
-
Regional Configuration: While you mentioned using the correct region (eu-west-1) and host (webservices.amazon.in) for India, double-check that your marketplace parameter is also correctly set to "www.amazon.in".
-
Account Status Inconsistency: The contradictory state you're seeing (active but access denied) suggests there might be an internal inconsistency with your account status across different Amazon systems.
For immediate mitigation, you could try implementing exponential backoff in your code:
delay = 1
while request_fails:
wait(delay)
delay *= 2
Since you've already contacted customer support twice without resolution, I recommend:
- Waiting the full 72 hours after creating new keys before testing again
- Explicitly requesting that support check if your account has the "UsagePlans" feature enabled
- Asking support to verify there are no account-level throttling restrictions on your specific account
The contradictory state suggests this might require manual intervention from Amazon's side to resolve the inconsistency between your account status indicators.
Sources
Problem with Amazon API | AWS re:Post
API Gateway - Execution failed: Resource forbidden due to invalid API Key | AWS re:Post
Why have two keys for the Product Advertising API | AWS re:Post
Relevant content
- asked 3 months ago
