- 
    Type:
Bug
 - 
    Resolution: Duplicate
 - 
    Priority:
Major - P3
 - 
    Affects Version/s: 1.42.2
 - 
    Component/s: GAI
 - 
    None
 - 
    Environment:OS: Sonoma 14.3
node.js / npm versions: 20.11 / 10.2.4
Additional info:
 
- 
        Not Needed
 - 
        None
 
- 
        Developer Tools
 
Problem Statement/Rationale
"Generate query" action stopped working for me. It throws error "Unexpected end of JSON input" for any query I try
Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell
Steps to Reproduce
- Press "generate query"
 - write query in natural language
 - press enter
 
Expected Results
I want to get AI-generated query
Actual Results
I see error "Unexpected end of json"
Additional Notes
One of our DBs have a lot collections. Could it be a reason? But I believe it worked there before
- is duplicated by
 - 
                    
COMPASS-7792 Natural language query in MongoDB Compass throws "Unexpected end of JSON input" error
-         
 - Closed
 
 -         
 
- is related to
 - 
                    
COMPASS-7780 Improve error handling for "non-network" failures in atlas service.
-         
 - Closed
 
 -