Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Automatically retrying a REST call until results are available — Cloud Customer Connect
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
25
Views
7
Comments
edited Aug 4, 2021 2:05PM in Visual Builder 7 comments

Summary

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

Content

Situation
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.

Register

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