{"record":{"id":"43e0a9e3405ddc4a","repo":"zeroclaw-labs/zeroclaw","slug":"http-connect-proxy-response-too-large","errorCode":null,"errorMessage":"HTTP CONNECT proxy response too large","messagePattern":"HTTP CONNECT proxy response too large","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-config/src/schema.rs","lineNumber":10974,"sourceCode":"                    anyhow::bail!(\"HTTP CONNECT proxy closed connection before response\");\n                }\n                total += n;\n                // Look for end of HTTP headers.\n                if let Some(pos) = find_header_end(&buf[..total]) {\n                    let status_line = std::str::from_utf8(&buf[..pos])\n                        .unwrap_or(\"\")\n                        .lines()\n                        .next()\n                        .unwrap_or(\"\");\n                    if !status_line.contains(\"200\") {\n                        anyhow::bail!(\n                            \"HTTP CONNECT proxy returned non-200 response: {status_line}\"\n                        );\n                    }\n                    break;\n                }\n                if total >= buf.len() {\n                    anyhow::bail!(\"HTTP CONNECT proxy response too large\");\n                }\n            }\n\n            BoxedIo(Box::new(tcp))\n        }\n        scheme => {\n            anyhow::bail!(\"Unsupported proxy scheme '{scheme}' for WebSocket connections\");\n        }\n    };\n\n    // If the target is wss://, wrap in TLS.\n    let is_secure = target.scheme() == \"wss\";\n    let stream: BoxedIo = if is_secure {\n        let mut root_store = rustls::RootCertStore::empty();\n        root_store.extend(webpki_roots::TLS_SERVER_ROOTS.iter().cloned());\n        let tls_config = std::sync::Arc::new(\n            rustls::ClientConfig::builder()\n                .with_root_certificates(root_store)","sourceCodeStart":10956,"sourceCodeEnd":10992,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-config/src/schema.rs#L10956-L10992","documentation":"Error \"HTTP CONNECT proxy response too large\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-config/src/schema.rs:10974 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The proxy sent an oversized CONNECT response; verify you are talking to a real HTTP CONNECT proxy."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}