I have a HTTP request node that’s been running for more than 30 minutes for 500 items.
But the API has a rate limit of 120 requests per minute which means it should be taking about 4-5 mins for 500 items. Even if it retries between requests, I don’t think it make sense to take so long. May I know the best way to fix this?
yes, there are logs. But even after the last API call, the node in n8n kept running i.e. the last API call in RapidAPI stated 10:22 and the current time is say 10:55 but the node is still running @jabbson
Try batching your requests like in the example below. I mock out 1000 items in a list, then I use the loop node and set the batch at 100 items, wait 1 minute before I continue with the next set of 100 items/http calls. This should limit your rate limits to 100 items every minute. Off course you’ll need to adjust the waiting time according to the rate limit rules of the api youre calling.