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
Uh oh!
There was an error while loading. Please reload this page.
-
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 whilemay be the solution but I don't know how to express the condition).Currently, I use an "ugly"
loop forcombined withsleepto 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 == COMPLETEDin the response body.Does httpyac support that in some way? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions