Uncachable response in case of error

Created on 10 October 2023, about 1 year ago
Updated 11 October 2023, about 1 year ago

Problem/Motivation

When the search index is not available, the catch is throwing and error and an empty array is returned for results. This response is cached and even after the search index (connection) is back the response is still the empty array.

Steps to reproduce

1. Break connection with search index.
2. Do a search using the route from search api decoupled
3. Restore connection with search index.
4. Do same search request and the resutls are empty even if there are results (until clear cache).

Proposed resolution

Return uncachable response in case of error.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇴Romania szloredan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024