Pagination is not working for me.
I’m trying to implement pagination within the http node (finally!) In the http node. I have this working for another service and the parameters are very similar. Both give me total records, page number, and records per page.
Simple, right? I wish it were so.
Error message: “The returned response was identical 5x, so requests got stopped”
I’m assuming that means the page counter isn’t being updated.
I’m using the example in the pagination cookbook.
I’ve tried several permutations of the finished algorithm.
I’ve verified that when page 2, 3, 4, etc is passed in the options.page variable, it does pull the right page.
In the http node, I have tried both of the following completed tests:
{{ $response.rows/$response.page_size <= $pageCount }}
{{ $response.body.rows/$response.body.page_size <= $pageCount }}
Here is a json snippet showing the data (minus the devices I’m pulling from the platform.)
{
"status": "OK",
"response": [
{
"devices": [
... Lots of data ...
],
"rows": 115,
"page_size": 50,
"page": 1
}
]
}
Here’s my workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.57.0
- Database (default: SQLite): postgresQL 15
- n8n EXECUTIONS_PROCESS setting (default: own, main): Main
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker on Digital Ocean
- Operating system: Ubuntu 22.04.4 LTS