{"record":{"id":"684d1ba1a374d771","repo":"BigPizzaV3/CodexPlusPlus","slug":"error-684d1b","errorCode":null,"errorMessage":"未找到可用的聚合供应商成员","messagePattern":"未找到可用的聚合供应商成员","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/protocol_proxy.rs","lineNumber":771,"sourceCode":"                response: upstream,\n            });\n        }\n        let _ = crate::diagnostic_log::append_diagnostic_log(\n            \"protocol_proxy.upstream_failover\",\n            json!({\n                \"relayId\": relay.id,\n                \"relayName\": relay.name,\n                \"endpoint\": endpoint,\n                \"wireApi\": wire_api,\n                \"stream\": is_stream,\n                \"statusCode\": status_code,\n                \"attempt\": attempt + 1,\n                \"candidateCount\": relay_count,\n                \"headerTimeoutSeconds\": header_timeout.as_secs()\n            }),\n        );\n    }\n    anyhow::bail!(\"未找到可用的聚合供应商成员\")\n}\n\nfn select_model_route(\n    settings: &crate::settings::BackendSettings,\n    model: &str,\n) -> anyhow::Result<Option<ModelRouteSelection>> {\n    if model.is_empty() || settings.active_aggregate_relay_profile().is_some() {\n        return Ok(None);\n    }\n\n    let source = settings.active_relay_profile();\n    let Some(route) = source\n        .model_routes\n        .iter()\n        .find(|route| route.model.trim() == model)\n    else {\n        return Ok(None);\n    };","sourceCodeStart":753,"sourceCodeEnd":789,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6/crates/codex-plus-core/src/protocol_proxy.rs#L753-L789","documentation":"open_responses_proxy_request_with_settings_and_user_agent fans requests out to the members of an aggregate (relay_mode = Aggregate) provider. After exhausting retries/attempts without finding a usable relay member, it bails with this message indicating the aggregate provider has no requestable upstream members.","triggerScenarios":"A request routed to an aggregate provider finds zero eligible member relay profiles — all members are disabled, filtered out by model/protocol checks, or relay_count is 0 after candidate selection and the retry loop ends without success.","commonSituations":"User configured an aggregate provider but never added member relays; all members were disabled or deleted; every member failed health/auth validation so attempts were skipped; settings were partially migrated leaving an empty aggregate.","solutions":["Open CodexPlusPlus settings and add at least one healthy member relay to the aggregate provider","Re-enable or fix the disabled/failing member profiles (check base URL, API key, protocol)","Check the diagnostic log entries emitted before the bail (candidateCount, attempt) to see why candidates were filtered","Remove the aggregate provider or point the model at a direct relay if aggregation is not needed"],"exampleFix":"// settings.toml — before\n[[relay_profiles]]\nid = \"agg\"\nrelay_mode = \"aggregate\"\n# no members\n// after\n[[relay_profiles]]\nid = \"agg\"\nrelay_mode = \"aggregate\"\nmembers = [\"relay-a\", \"relay-b\"]","handlingStrategy":"try-catch","validationCode":"let members: Vec<_> = settings.relay_profiles.iter()\n    .filter(|p| p.membership_of.as_deref() == Some(agg_id) && p.enabled)\n    .collect();\nif members.is_empty() { return Err(anyhow!(\"aggregate {agg_id} has no enabled members\")); }","typeGuard":null,"tryCatchPattern":"match open_responses_proxy_request_with_settings(...).await {\n    Ok(resp) => resp,\n    Err(e) if e.to_string().contains(\"未找到可用的聚合供应商成员\") => fallback_to_direct_relay_or_503(e),\n    Err(e) => return Err(e),\n}","preventionTips":["Validate on save that aggregate providers have at least one enabled member","Surface aggregate health in the UI so empty aggregates are visible","Alert on candidateCount == 0 in diagnostic logs"],"tags":["proxy","configuration","aggregate"],"backgroundTag":"missing-required-config-field","analyzedSha":"b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6","analyzedAt":"2026-09-19T23:35:21.129Z","contentChangedAt":"2026-09-19T23:35:21.129Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}