Hello, I am running n8n on AWS and I am trying to download loads of images from my s3 bucket. The download node will not let me download my first large test set (1,399 images) in one go, so I need to set it up in a loop.
The number of images will never be the same. The problem is that the last iteration of the loop will not have the same number of images as the rest of the runs. I tried running it without the code nodes, but then the loop over items node just buffers until it times out.
Now, I’m having the same problem, but it is buffering at the function node. I have been trying to get ChatGPT and Claude to write me code to put in these nodes so it sets all of the first batches to 200 then the last batch to how ever many images are left so it doesn’t get stopped, but it just will not work.
The one time the loop actually completed was when the function node inside the loop corrupted the images and turned them into a line of text. So, the loop finished, but it didn’t output images. I have no idea what is wrong, and I am open to all types of solutions. Here is the section of the workflow as it sits right now.
I would like to insert the workflow, but I can not figure out how to. I clicked on the </> and pasted my copied workflow, but it is just pasting code and when I post the conversation it does not come up as a set of nodes.