When processing a large number of requests, my workflow starts receiving rate-limit errors from the API provider. What’s the best way to handle this within n8n?
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
@Victory1 the built-in way is the HTTP Request nodes Batching option, theres a setup for exactly this. on the node hit Add Option > Batching and set Items per Batch and Batch Interval (ms) to pace the calls, eg if the api allows one request a second set items per batch to 1 and batch interval to 1000, that spaces them out so you stop tripping the limit (its basically Loop Over Items + Wait baked into the one node). then turn on Retry On Fail in the node settings with a wait between tries, so the odd 429 that still sneaks through just retries after a pause instead of failing the whole run. whats the providers actual limit, requests per second or per minute? i can give you the exact numbers to plug in.