I followed the instructions installed n8n on Digital Ocean.
I created my workflow. It runs everyday morning., And it worked well but out of a sudden, it became problematic. stop on the 28th loop
Trying to figure out why my flow loop node stops before all items are being processed, even though the task returns as executed successfully.
After I update the loop node to 1 item per batch or 2 items per batch both stop suddenly, But I dont think it is relative. It is the same after I tried to run it 4 items per batch
I tried to enable log and see if there are any clues. I added these lines into the .env file. I ran the flow and it stopped. But there were no log generated. Am I missing something here?
@Blueli , are there any other nodes engaged in the loop? For example, do you use IF node, Filter or Switch? Typical reason for breaking the loop is including conditional check.
You need to make sure that an item is always returned to the Loop input. If HTTP Request is the only node in the Loop, make sure it always returns something. If you are saying the iteration stopped on the 28th run, you can easily check the returned value. You do not need any special logging to be enabled. That information is accessible from the node UI.
It also appears that the workflow takes a very long time to complete. Have you reached the workflow timeout?
Yes. You are right. It was because there was a record from the HTTP node output of nothing therefore the loop stopped. I enabled always output data. The issue is resolved! Thanks