Describe the problem/error/question
I was trying to implement API pagination, and I found a behavior that I do not understand, and I suppose it might be a bug.
In Node HTTP request, there is a reference to a variable defined in Edit Fields which is before the loop. It can be any variable, for example, the API URL.
During the execution of the second iteration, Node HTTP request does not have access to the variable defined in Edit Fields.
The error does not occur when there is no node in the loop that splits the data from the HTTP request.
The error also does not appear if the variable is redefined in the first Code node in the loop.
I attach example workflow.
The error message:
ERROR: Can’t get data for expression under ‘URL’ field
Example workflow
Information on your n8n setup
- n8n version: 1.8.2
- Database (default: SQLite): pg
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: ubuntu