feat: enhance error handling for chat#11543
feat: enhance error handling for chat#11543SuZhou-Joe merged 2 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
PR Reviewer Guide 🔍(Review updated until commit a2dcd2d)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to a2dcd2d
Previous suggestionsSuggestions up to commit a2dcd2d
|
|
Persistent review updated to latest commit a2dcd2d |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11543 +/- ##
==========================================
- Coverage 61.49% 61.49% -0.01%
==========================================
Files 4988 4988
Lines 136627 136632 +5
Branches 23623 23624 +1
==========================================
+ Hits 84022 84023 +1
- Misses 46569 46574 +5
+ Partials 6036 6035 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
The change adds error detection for ML client so it will return the error to users instead of trying to parse the response.body.
Issues Resolved
Screenshot
N/A
Before the fix
The server response with 500 error with
After the fix
The server response with correct error code from server.
Testing the changes
Changelog
Check List
yarn test:jestyarn test:jest_integration