How to loop until status code or response body field has some specific value? #820
Closed
asaintsever
started this conversation in
General
Replies: 1 comment 1 reply
-
try this
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using a REST API that requires to poll an endpoint until the response contains a specific value. I did not find information on how to do this in the documentation (the
loop while
may be the solution but I don't know how to express the condition).Currently, I use an "ugly"
loop for
combined withsleep
to do my polling as is:It is far from being bullet proof (either you poll too long or, worse, not enough). Here I want to poll until
state == COMPLETED
in the response body.Does httpyac support that in some way? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions