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

Improve error handling for "non-network" failures in atlas service.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.43.0
    • Affects Version/s: None
    • Component/s: GAI
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Iteration Zephyrosaurus
    • Not Needed
    • Developer Tools

      Investigate missing statusCode in logs and improve error handling with failures like "Unexpected end of JSON input", and other non backend errors:

      ```
      {"t":

      {"$date":"2024-03-05T17:34:01.494Z"}

      ,"s":"I","c":"ATLAS-AI-SERVICE","id":1001000297,"ctx":"AtlasService","msg":"Making a fetch","attr":{"url":"https://cloud.mongodb.com/api/private/ai/api/v1/mql-query"}}
      {"t":

      {"$date":"2024-03-05T17:34:01.632Z"}

      ,"s":"W","c":"COMPASS-QUERY-BAR-UI","id":1001000198,"ctx":"AIQuery","msg":"AI query request failed","attr":{"statusCode":null,"errorMessage":"Unexpected end of JSON input","errorName":"request_error","errorCode":"SyntaxError"}}
      ```

            Assignee:
            basit.chonka@mongodb.com Basit Chonka
            Reporter:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: