Error handling for the Widget API - Bloomreach Experience - Open Source CMS

Error handling for the Widget API

Tips

Error handling for both timeouts and errors must be in place to have a graceful exit.

If there are timeouts or lookup failures for remote API calls, then you need to omit related categories, related items and related products widgets from category, product and mobile views.

Timeouts

Timeouts are set at 750 milliseconds.

Errors

You must set up error handling for scenarios in which an API call returns a non-200 response, such as 404 or 500.

 Required: Set up error handling for non-200 responses
This step is essential, and not at all optional. Error handling is required for responses that aren't 200 (success).

 

 

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?