Open bbawuah opened 7 months ago
Hey Thank you for reporting a bug. I'll prepare a bug fix to throw an error or pass custom error handler
As a workaround before making a request you can override console.error function and catch error there, after request set console.error back to default function. It's a hacky approach so I wouldn't recommend to use it.
Yan
Hey Thank you for reporting a bug. I'll prepare a bug fix to throw an error or pass custom error handler
As a workaround before making a request you can override console.error function and catch error there, after request set console.error back to default function. It's a hacky approach so I wouldn't recommend to use it.
Yan
Thanks for this Yan 🙂
I've encountered something with the QueryBuilder. When unauthorized users attempt a search, Elasticsearch correctly responds with a 401 Unauthorized error. However, the QueryBuilder doesn't propagate this error. Instead, it returns a default object with empty aggregations and facets. This behavior is misleading in our frontend, as it hides the actual authorization error. Is there a way for the QueryBuilder to handle this accurately?