Automatically retrying a REST call until results are available
SummaryWe'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.