{"record":{"id":"8d9709958c3b8822","repo":"BigPizzaV3/CodexPlusPlus","slug":"llm-bridge","errorCode":null,"errorMessage":"LLM Bridge 请求体过大","messagePattern":"LLM Bridge 请求体过大","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/routes.rs","lineNumber":717,"sourceCode":"        .map(str::trim)\n        .filter(|value| !value.is_empty())\n        .unwrap_or(\"POST\");\n    if !method.eq_ignore_ascii_case(\"POST\") {\n        anyhow::bail!(\"LLM Bridge 仅支持 POST 请求\");\n    }\n\n    let timeout_ms = payload\n        .get(\"timeout_ms\")\n        .and_then(Value::as_u64)\n        .unwrap_or(60_000)\n        .clamp(1_000, 60_000);\n    let body = payload\n        .get(\"body\")\n        .and_then(Value::as_str)\n        .unwrap_or_default()\n        .to_string();\n    if body.len() > 1_048_576 {\n        anyhow::bail!(\"LLM Bridge 请求体过大\");\n    }\n\n    let client = reqwest::Client::builder()\n        .timeout(std::time::Duration::from_millis(timeout_ms))\n        .redirect(reqwest::redirect::Policy::none())\n        .build()?;\n    let response = client\n        .post(url)\n        .headers(llm_proxy_headers(&payload)?)\n        .body(body)\n        .send()\n        .await?;\n    let http_status = response.status().as_u16();\n    let ok = response.status().is_success();\n    let content_type = response\n        .headers()\n        .get(reqwest::header::CONTENT_TYPE)\n        .and_then(|value| value.to_str().ok())","sourceCodeStart":699,"sourceCodeEnd":735,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/f2074595a281bc057525c748175c8eb9805b0673/crates/codex-plus-core/src/routes.rs#L699-L735","documentation":"Thrown by llm_proxy_value when the request body string exceeds 1 MiB (1_048_576 bytes). This is the inbound size cap of the LLM Bridge proxy; the offending input is payload.body, and the guard fires before the outbound HTTP client is even built.","triggerScenarios":"Thrown at crates/codex-plus-core/src/routes.rs:717 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["精简请求体后重试","分片或改用直连方式发送大负载"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f2074595a281bc057525c748175c8eb9805b0673","analyzedAt":"2026-08-23T12:52:24.489Z","contentChangedAt":"2026-08-23T12:52:24.489Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}