{"record":{"id":"66d1a63a8e1951f1","repo":"zed-industries/zed","slug":"no-response-received","errorCode":null,"errorMessage":"No response received","messagePattern":"No response received","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/edit_prediction_cli/src/anthropic_client.rs","lineNumber":135,"sourceCode":"\n        while let Some(event_result) = stream.next().await {\n            let event = event_result.map_err(|e| anyhow::anyhow!(\"{:?}\", e))?;\n\n            match event {\n                Event::MessageStart { message } => {\n                    response = Some(message);\n                }\n                Event::ContentBlockDelta { delta, .. } => {\n                    if let anthropic::ContentDelta::TextDelta { text } = delta {\n                        text_content.push_str(&text);\n                        on_progress(text_content.len(), &text_content);\n                    }\n                }\n                _ => {}\n            }\n        }\n\n        let mut response = response.ok_or_else(|| anyhow::anyhow!(\"No response received\"))?;\n\n        if response.content.is_empty() && !text_content.is_empty() {\n            response\n                .content\n                .push(ResponseContent::Text { text: text_content });\n        }\n\n        Ok(response)\n    }\n}\n\npub struct BatchingLlmClient {\n    connection: Mutex<sqlez::connection::Connection>,\n    http_client: Arc<dyn HttpClient>,\n    api_key: String,\n}\n\nstruct CacheRow {","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/edit_prediction_cli/src/anthropic_client.rs#L117-L153","documentation":"generate_streaming finished consuming the Anthropic SSE stream without ever receiving a MessageStart event, so no message object was captured; the guard at the end reports that no response message arrived despite the stream completing.","triggerScenarios":"Thrown at crates/edit_prediction_cli/src/anthropic_client.rs:135 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the request; a stream that closes without MessageStart is abnormal but often transient","Check for API outages or malformed request payloads if persistent"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}