Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7025

Use error codeName from compass backend

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 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@mongodb.com Alena Khineika
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: