Wait node loop indefinitely

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

hello @flo

$json reference in the url might be ambigious. Better use strict format

And about the IF node. I do not see the field export_details in the output

Hello @barn4k
Thank you for the reply. The export detail is present only for the first item.

Strict format means calling the previous node like $(‘previous node’) ?

Flo

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