-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: GAI
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
Investigate missing statusCode in logs and improve error handling with failures like "Unexpected end of JSON input", and other non backend errors:
```
{"t":
,"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":
,"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"}}
```
- duplicates
-
COMPASS-7792 Natural language query in MongoDB Compass throws "Unexpected end of JSON input" error
- Closed
- related to
-
COMPASS-7704 Generate Query doesn't work. Unexpected end of json
- Closed