kibana/x-pack/plugins/enterprise_search/public
Constance 6feea1a506
[Enterprise Search] Distinguish between error connecting vs. 5xx responses from Enterprise Search in UI (#103555)
* Update Enterprise Search request handler to send back an error connecting header

- vs only distinguishing error connecting issues by 502 status

+ clarify comment where this.handleConnectionError is called - for the most part, auth issues should already be caught by 401s in logic above

* Update HttpLogic to set errorConnecting state based on header

+ update tests etc to match read-only-mode state

* [Tech debt] Gracefully handle invalid HTTP responses

I've noticed this error a few times after Kibana gets shut down (http.response is undefined) so figured I would catch it here

* Fix missing try/catch/flashAPIErrors on engines overview

- This is the only http call I found missing a try/catch across our codebase, so we should be set for all views correctly flashing an API error that receive a 5xx response from ent-search

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 18:56:03 -04:00
..
applications [Enterprise Search] Distinguish between error connecting vs. 5xx responses from Enterprise Search in UI (#103555) 2021-06-28 18:56:03 -04:00
index.ts [Enterprise Search] Add eslint import/order rules (#90530) 2021-02-09 09:33:39 -08:00
plugin.ts [Workplace Search] Add Account Settings page imported from Security plugin (#99791) 2021-06-10 14:20:30 -03:00