I use a POST request to initiate a flow which calls several APIs. The POST request returns a progress URL in its body, and that progress URL has a JSON key, “state”, which indicates whether all the APIs have been called successfully.
The value of “state” is initially “RETRY”, but after a minute or two resolves to either “SUCCESS” or “FAILURE”. As such, a test that immediately checks whether “state” === “SUCCESS” will always fail.
I have tried things such as setTimeout to try and delay the check to “state”, and have also tried do/while loops where “state” is checked repeatedly until it resolves to either “SUCCESS” or “FAILURE”.
Both of these types of approaches ends up crashing my Postman app; at best, I receive an error message: “There was an error in evaluating the test script: Error: sandbox: execution interrupted, bridge disconnecting.”.
I appreciate any help anyone can offer. I’m running the latest Postman App on a Windows 10 PC.