kindminis
3 years agoNew Contributor
REST GET with retries not working
I have a REST GET snap with an authorization header holding an access token which is making a call to see if a job is done with a status code that is either Submitted or Completed. I want it to retry the same URL with the authorization header until the code is Completed, then grabs an S3 url. However, I cannot get the retry to work using has next/next URL.
Has Next:
jsonPath($, “$entity.data.attributes.status.code”) != ‘Completed’
Next URL:
“https://…/v2/jobs/” + $job_id