Describe the problem/error/question
I’m trying to do a simple loop with a wait node
- Run an HTTP GET
- Check if {{ $json.export_details.job_status }} == completed
- If not wait 5s and redo the GET
What is the error message (if any)?
I don’t get an error message, I’m going through an infinite loop
Because the condition I’m checking is not in the same format.
To check I would need to use : {{ $json.export_details[1].job_status }} (just an example)
So it looks like the if is adding all previous result, and the next iteration of the if is reading an array, hence not finding my initial condition.
I’m using the same format for another http call, and it works like a charm.
I don’t know what is happening here.
Please share your workflow
Share the output returned by the last node
After some run it looks like this:
Information on your n8n setup
- n8n version: 1.77.3
- Database (default: SQLite): Postgresql
- n8n EXECUTIONS_PROCESS setting (default: own, main): main
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: Linux