Describe the problem/error/question
- On first run when use $response in pagination parameters value it’s throwing an error because data is undefined.
If I run first time without pagination and then try it’s working
- I used
{{ $response.body.toJsonString().parseJson()[0].id + 2 }}
because{{ $response.body.id + 2 }}
doesn’t work.
In other case i got this error
“The returned response was identical 5x, so requests got stopped
Check if “Pagination Completed When” has been configured correctly.” and I used this{{ !$response.body.last_page }}
. So i think it’s the same case when request doesn’t have $response yet and error is thrown.
BTW: documentation doesn’t mention anything about using ! with $response (HTTP Request | n8n Docs).
Please share your workflow
Test workflow
Information on your n8n setup
- n8n version: 1.41.1
- Database (default: SQLite): postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): defaut
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: linux