Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Infra] Show the correct error message when the request to/api/metrics/source/ fails #200190

Open
jennypavlova opened this issue Nov 14, 2024 · 1 comment
Assignees
Labels
bug Fixes for quality problems that affect the customer experience sdh-linked Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@jennypavlova
Copy link
Member

Kibana version: 8.15.x

Describe the bug: When the request to /api/metrics/source/ fails we show the wrong message regarding the remote cluster connection - the correct message should be related to the source error

Steps to reproduce:

  1. It's not easy to reproduce - the only easy way I see is to "fake" an error API response (4** / 5**)
  2. Then go to Metrics Explorer
  3. A wrong error message is displayed:

Image

Expected behavior:
The error message should be based on the error thrown

To fix that we need is: first to return the source errors if any and then show the remote cluster error (only if the request is successful and no other errors are present)

@jennypavlova jennypavlova added bug Fixes for quality problems that affect the customer experience sdh-linked Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Nov 14, 2024
@jennypavlova jennypavlova self-assigned this Nov 14, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience sdh-linked Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

No branches or pull requests

2 participants