Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.15] [Tines connector] Improve error handling and fallback (#191263) (
#191491) # Backport This will backport the following commits from `main` to `8.15`: - [[Tines connector] Improve error handling and fallback (#191263)](#191263) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sergi Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2024-08-27T12:10:48Z","message":"[Tines connector] Improve error handling and fallback (#191263)\n\n## Summary\r\n\r\nFrom: https://github.com/elastic/kibana/issues/188115\r\n\r\nImprovements of the Tines connector:\r\n\r\n- Original Axios error passed back from `getResponseErrorMessage` to the\r\nsub-actions framework, instead of returning `Unknown API error` string.\r\nThe error appears in the error toast so the user has more information\r\nabout the problem:\r\n\r\nBefore:\r\n<img width=\"975\" alt=\"before\"\r\nsrc=\"https://github.com/user-attachments/assets/0fdfd085-a4d6-4ebe-b1ae-0f62332b4f5c\">\r\n\r\nAfter:\r\n<img width=\"975\" alt=\"after\"\r\nsrc=\"https://github.com/user-attachments/assets/1019c8ce-c97c-4564-8ec0-eca303706cfa\">\r\n\r\n\r\n- Fallback input (direct webhook URL) now appears when there's some\r\nerror. Before this change, the fallback input only appeared when the\r\nTines API response was incomplete. Proper callout message added:\r\n\r\n<img width=\"975\" alt=\"Error fallback\"\r\nsrc=\"https://github.com/user-attachments/assets/b8f46df5-5dfe-42cb-88cc-f10e12a07e25\">\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"ffd4076538cdd41c41651a09e11fb3eef8144b85","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team: SecuritySolution","backport:prev-minor","v8.16.0"],"title":"[Tines connector] Improve error handling and fallback","number":191263,"url":"https://github.com/elastic/kibana/pull/191263","mergeCommit":{"message":"[Tines connector] Improve error handling and fallback (#191263)\n\n## Summary\r\n\r\nFrom: https://github.com/elastic/kibana/issues/188115\r\n\r\nImprovements of the Tines connector:\r\n\r\n- Original Axios error passed back from `getResponseErrorMessage` to the\r\nsub-actions framework, instead of returning `Unknown API error` string.\r\nThe error appears in the error toast so the user has more information\r\nabout the problem:\r\n\r\nBefore:\r\n<img width=\"975\" alt=\"before\"\r\nsrc=\"https://github.com/user-attachments/assets/0fdfd085-a4d6-4ebe-b1ae-0f62332b4f5c\">\r\n\r\nAfter:\r\n<img width=\"975\" alt=\"after\"\r\nsrc=\"https://github.com/user-attachments/assets/1019c8ce-c97c-4564-8ec0-eca303706cfa\">\r\n\r\n\r\n- Fallback input (direct webhook URL) now appears when there's some\r\nerror. Before this change, the fallback input only appeared when the\r\nTines API response was incomplete. Proper callout message added:\r\n\r\n<img width=\"975\" alt=\"Error fallback\"\r\nsrc=\"https://github.com/user-attachments/assets/b8f46df5-5dfe-42cb-88cc-f10e12a07e25\">\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"ffd4076538cdd41c41651a09e11fb3eef8144b85"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191263","number":191263,"mergeCommit":{"message":"[Tines connector] Improve error handling and fallback (#191263)\n\n## Summary\r\n\r\nFrom: https://github.com/elastic/kibana/issues/188115\r\n\r\nImprovements of the Tines connector:\r\n\r\n- Original Axios error passed back from `getResponseErrorMessage` to the\r\nsub-actions framework, instead of returning `Unknown API error` string.\r\nThe error appears in the error toast so the user has more information\r\nabout the problem:\r\n\r\nBefore:\r\n<img width=\"975\" alt=\"before\"\r\nsrc=\"https://github.com/user-attachments/assets/0fdfd085-a4d6-4ebe-b1ae-0f62332b4f5c\">\r\n\r\nAfter:\r\n<img width=\"975\" alt=\"after\"\r\nsrc=\"https://github.com/user-attachments/assets/1019c8ce-c97c-4564-8ec0-eca303706cfa\">\r\n\r\n\r\n- Fallback input (direct webhook URL) now appears when there's some\r\nerror. Before this change, the fallback input only appeared when the\r\nTines API response was incomplete. Proper callout message added:\r\n\r\n<img width=\"975\" alt=\"Error fallback\"\r\nsrc=\"https://github.com/user-attachments/assets/b8f46df5-5dfe-42cb-88cc-f10e12a07e25\">\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"ffd4076538cdd41c41651a09e11fb3eef8144b85"}}]}] BACKPORT--> Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
- Loading branch information