You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Automatically retrying a REST call until results are available

Accepted answer
edited Aug 4, 2021 2:05PM in Visual Builder 7 comments


We'd like to automatically keep retrying a REST call until its response isn't empty


We're developing this web application where on a certain page, the user needs to work with data coming from a REST endpoint. The issue is that when the page is loaded, the data might not yet be available at the REST endpoint. This results in the REST call initially returning a HTTP 200 response, but with an empty body. Thus far we've added a 'retry' button on the page, allowing the user to retry the fetch manually. When manually retrying the fetch after a second or so, the response is usually not empty anymore.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!