Pagination issue

Describe the problem/error/question

I am having an issue with pagination. PageCount shows null when I am trying to do pagnination which I do not understand

What is the error message (if any)?

ERROR: No data found for item-index: “0”

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

{
“title”: “Data Scientist, Machine Learning”,
“path”: “/data-scientist-machine-learning-teamgohealth-4704923”,
“remote”: false,
“company_name”: " #TeamGoHealth",
“company_slug”: “teamgohealth”,
“company_logo_url”: “https://startup.jobs/logos/10004”,
“location”: “United States”,
“location_html”: “<a class="link z-10" href="/locations/illinois">Illinois, <a class="link z-10" href="/locations/united-states">U.S.”,
“_tags”: [
“Data Science”,
“Machine Learning”
],
“objectID”: “4704923”,
“_highlightResult”: {
“title”: {
“value”: “Data Scientist, Machine Learning”,
“matchLevel”: “full”,
“fullyHighlighted”: false,
“matchedWords”: [
“data”,
“scientist”
]
},
“company_name”: {
“value”: " #TeamGoHealth",
“matchLevel”: “none”,
“matchedWords”:
}
}
}

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@spencerbf, if what you posted is what HTTP Request node returns then there is no more pages to go through. You do not need to use pagination.

Hey @ihortom,

Welcome to the community :raised_hands:

When using the $pageCount option it will show null in the UI as the workflow has not run so it doesn’t know what the pagecount is, If you can share the workflow you are using we can take a look at it and see what might be missing.

Hi @ihortom The response above was from the first http request node, and then when I run the 2nd HTTP request node I get the error I shared above. @Jon here is my workflow below. Thanks for both of your help.

I have worked it out. Thanks for your help.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.