-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Console] Fix incorrect output message when status code is 200 and body is empty #199975
Conversation
💚 Build Succeeded
Metrics [docs]Async chunks
cc @sabarasaba |
Pinging @elastic/kibana-management (Team:Kibana Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good and work well!
Starting backport for target branches: 8.x |
…dy is empty (elastic#199975) (cherry picked from commit 35c2a9e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…and body is empty (#199975) (#200122) # Backport This will backport the following commits from `main` to `8.x`: - [[Console] Fix incorrect output message when status code is 200 and body is empty (#199975)](#199975) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2024-11-14T08:27:31Z","message":"[Console] Fix incorrect output message when status code is 200 and body is empty (#199975)","sha":"35c2a9e31e39f068c62767dc455b26e7ce7efb0c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana Management","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Console] Fix incorrect output message when status code is 200 and body is empty","number":199975,"url":"https://github.com/elastic/kibana/pull/199975","mergeCommit":{"message":"[Console] Fix incorrect output message when status code is 200 and body is empty (#199975)","sha":"35c2a9e31e39f068c62767dc455b26e7ce7efb0c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199975","number":199975,"mergeCommit":{"message":"[Console] Fix incorrect output message when status code is 200 and body is empty (#199975)","sha":"35c2a9e31e39f068c62767dc455b26e7ce7efb0c"}}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
Fixes #198010
Summary
This small PR resolves an issue where the API returns a 200 status with an empty body. The update ensures that an “OK” message is displayed instead of an error.