Here’s a subworkflow of mine:
even putting a wait node of 5 seconds, i still get the error of : too many requests.
Here’s a subworkflow of mine:
even putting a wait node of 5 seconds, i still get the error of : too many requests.
Hi @Philly_Hot !
Probably you’re hitting rate limits. You need to make sure the requests are strictly sequential, that no parallel executions are running, that you’re not close to your daily quota, and that the delay is applied to each individual API call.
The Wait node isn’t doing what you think it is here, n8n sends all items through a node in parallel by default so your API calls are all firing at once regardless of the Wait. Amazon PA-API only allows 1 request per second with fresh credentials so you’re getting hammered immediately. What you want is to use the Loop Over Items node with batch size set to 1 right before the PA-API node, and then put your Wait node after it looping back, that way it processes one item at a time with a delay between each. Alternatively if you’re using the HTTP Request node directly you can go into Options > Batching and set items per batch to 1 with a batch interval of at least 1000ms which does the same thing without needing the loop.