Skip to content

[9.0] [ML] AI Connector creation UI: ensures error message is bubbled up in Kibana (#221859) #225528

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

Open
wants to merge 1 commit into
base: 9.0
Choose a base branch
from

Conversation

alvarezmelissa87
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

… Kibana (elastic#221859)

## Summary

Fixes elastic#220145

This PR adds error handling to the connector creation and updating
routes to ensure that useful error messages are bubbled up to Kibana.
Prior to this change, errors would be generic 500 errors with no useful
info on what was actually the issue.

There is also work underway right now for improving error messaging on
the backend so this will be even more useful when those changes are in.

Before:

![image](https://github.com/user-attachments/assets/82e57d47-284d-46d8-9ef3-25f273bb6b32)
(clicking See full error also just showed an internal server error)

After:

![image](https://github.com/user-attachments/assets/970673f9-31b0-40af-932e-ea7eb70b48ac)

![image](https://github.com/user-attachments/assets/759734a0-5d56-458e-bcbd-6513eb4de63f)

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 0c9bbf3)

# Conflicts:
#	x-pack/platform/plugins/shared/actions/server/routes/connector/create/create.ts
@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 26, 2025

💔 Build Failed

Failed CI Steps

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants