Skip to content

Combo failover: a provider HTTP 413 (request too large) stops the whole combo instead of hopping to the next target #9017

Closed

Description

@RHODIZSECURITY

Client or integration

Direct HTTP/API client

Area

Proxy and routing

Summary

This re-files #9016, which the issue-quality bot auto-closed because it was not opened with a recognized template. The substance is unchanged; this version follows the Bug report template.

When a combo target rejects a request with HTTP 413 (payload / request too large for that target), the combo traversal treats the refusal as a terminal verdict for the whole request instead of hopping to the next untried target. The same failure also gets cooldown scope "none", so the refusing provider is not cooled and stays eligible to kill the next request the same way.

Expected: a 413 / request_too_large refusal is target-local evidence — "this target cannot take a request this large" — not a verdict on the request itself. The payload does not change between targets, and a later combo target with a larger intake limit may accept it as-is. The combo should hop to the next untried target and only surface an error when no alternative remains, the same way it already treats per-target context overflow. Requested change: decide "hop" for this error class in decideComboFailure (status 413, and the structured request_too_large code), keeping the cooldown scope at "none" as it already is.

A local one-condition patch adding exactly this hop arm to decideComboFailure is applied on a 2.100.6 install here: the decision change is verified against the installed code (413 and request_too_large now decide "hop"; every control case — generic invalid_request_error 400, 499, 429, 5xx, 401 — decides exactly as before), and the patched proxy is live and healthy.

Reproduction

In src/combos/failover.ts:

  • comboFailureCooldownScope reads status 413 as a request-shape refusal and returns "none" (the target is healthy; the request simply did not fit it).
  • But decideComboFailure has no hop arm for it: status 413 is not in the hop status list, and once the failure is classified it lands in the generic invalid_request_error stop (or the final fallthrough), so the traversal ends even when untried combo targets remain.

Other "this target cannot take this request" verdicts in the same function already hop — e.g. input_admission_refused, per-target context overflow, and the response-format capability refusal. A bare provider 413 is the exception that stayed a stop.

Observed conditions:

  1. A combo with several targets from different providers, where the targets have different request-size intake limits.
  2. Send combo requests large enough that at least one target in the rotation refuses with 413 (in the observed window the groq target, openai/gpt-oss-120b, refuses requests above its intake limit).
  3. When the rotation reaches the 413-refusing target, the whole request ends with a 400 (failureCause = payload-rejected) instead of hopping to the remaining untried targets.

Traversal is already finite (each candidate is tried once via the tried set and attempted targets are excluded from the pick), so a hop arm for 413 always advances and cannot loop on the refusing target within a request.

Related prior work in the same area: #7892 (hop on per-target context-length 400), #4150 (classification of a hopping 413 after the combo exhausts). Neither covers a bare provider 413 reaching the combo failure decision.

Version

2.100.6 (current); the same decision code is present in 2.99.0.

Operating system

Ubuntu 24.04.5 LTS

Provider and model

groq / openai/gpt-oss-120b — the target whose 413 refusals were observed. The defect is in the combo failover decision code and is not specific to this provider: any target with a smaller intake limit triggers it.

Logs or error output

Aggregate from one production proxy, ~46 minutes on 2.100.6:
- 232 combo requests in the window: 65 ended 200, 167 ended 400.
- All 167 errors carry failureCause = payload-rejected, and all 167 contain a groq
  attempt (openai/gpt-oss-120b) that returned 413.
- Continuations of the chain after a 413: 0 of 167. Chains that had been hopping
  across 429s died the moment the rotation reached the 413.
- By contrast, 429-class failures hop as expected: in the same window, 46 chains
  with failures were rescued by successive hops and completed with 200, with no
  error surfaced to the caller.
- Window context: the primary account was at its quota cap (429 / hard block) and
  other targets were returning 429, so rotations reached the 413 target often.
  In a quieter regime fewer chains rotate that far, but any chain that reaches a
  target with a smaller intake limit dies the same way: the mechanism is in the
  decision code, not the regime.

Screenshots and supporting files

None. The aggregate evidence is inline under "Logs or error output" above.

Redacted configuration

{
  "combo": {
    "targets": [
      "provider-a / large-intake-limit model",
      "provider-b / model (returning 429 during the observed window)",
      "groq / openai/gpt-oss-120b (smaller intake limit; returns 413 for large requests)",
      "additional fallback targets"
    ]
  }
}

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    account-pool
    proxy
    on Nov 20, 2026
  2. coderabbitai commented on Nov 20, 2026

    @coderabbitai
    Contributor
    ⚠️ Possible Duplicate Issue(s)


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. lidge-jun commented on Nov 21, 2026

    @lidge-jun
    Owner

    Fixed by #9021, merged into dev as 067f623. A provider-origin 413 now hops to the next untried combo target; proxy-owned, post-send and unreadable 413s stay terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    account-poolbugproxy

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions