[COMPASS-7025] Use error codeName from compass backend Created: 17/Jul/23  Updated: 17/Aug/23  Resolved: 31/Jul/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.39.2

Type: Task Priority: Major - P3
Reporter: Alena Khineika Assignee: Alena Khineika
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-6866
Documentation Changes: Not Needed

 Description   

Currently, we check for 'AIError' error name in `./packages/compass-query-bar/src/modules/ai-query-request.ts`

The frontend should check for 'QueryGenerationFailed' codeName for cases when we were not able to parse AI response (not a valid JSON, might be some description is included) or for 'InternalServerError' codeName for other cases, like not able to connect to AI model, no response from a model, other unexpected errors, that do not actionable for a user perspective.


Generated at Wed Feb 07 22:45:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.