Use error codeName from compass backend

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.39.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      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.

            Assignee:
            Alena Khineika
            Reporter:
            Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: