I am attempting to use the new pagination option in the HTTP Request node (great feature, by the way). The API I am accessing requires a page number to be sent in the body of a POST request. Seems like an easy case for the new feature. However, when I run the node, it executes 3 times (I set a 3 loop limit for testing) but submits the same $pageCount every time. Looking at the examples and other forum posts, I should not need to increment the value of $pageCount explicitly … but do I ?
Workflow (creds have been obscured)
Share the output returned by the last node
Last node is large - result is 3 sets of the same data (the HTTP Request node called POST-GetConversations is requesting the same page number each time)
I used this option about an hour ago for a workflow I was building, Can you remove the paging.pageNumber from the initial request that way the pagination will add it as it needs it.
Thanks @Jon . Done. That makes sense. Still getting the same results in each page submission, tho. That is, it executes 3 times as expected but returns the same for each. I checked the Developer Console - seems to show only one POST but missing the paging.pageNumber object.
The null looks to be correct, I have just given this a quick test against webhook.site and it looks to be working for me with the number incrementing as expected.
Can you try the below as a quick test and see if you are also getting the same output.
Yep, same result (correct paging values on the webhook site) so there is not something screwy with the n8n instance. Mystery !
I am gonna rebuild my flow from scratch and try again. If all else fails, I’ll put in a paging loop the old way. Thanks.
It looks like we are sending paging.pageNumber as a key rather than adding pageNumber to the existing paging object. I will get a bug ticket created for this on Monday morning but I think this explains the issue.
Ahhh. I cant see that in the console (but could be reading it wrong !) but would certainly explain it. Thanks for the effort on this one - much appreciated.