#4248·9router

NVIDIA upstream connect timeouts (~250s) surface as 502

Author: zerotraceioCreated Sep 22, 2026Updated Sep 30, 2026

Bug: NVIDIA upstream connect timeouts (~250s) surface as 502

Component

Provider executor / NVIDIA integration (upstream open-sse default executor path)

Severity

Medium — intermittent request failures; only affects slow/flaky NVIDIA models.

Upstream or Fork

Upstream (decolua/9router @ 21583c03).

Description

Requests to certain NVIDIA-hosted models occasionally hang until the upstream fetch aborts, at which point 9router returns a 502. Two models in this deployment are affected repeatedly: nvidia/nemotron-3.5-lightning-30b-a3b and z-ai/glm-5.3. Other NVIDIA models respond normally.

Steps to Reproduce

  1. Send a chat completion for nvidia/z-ai/glm-5.3 (or nvidia/nemotron-3.5-lightning-30b-a3b) through the router at http://localhost:20128/v1/chat/completions.
  2. Wait for the upstream call.
  3. Observe the request abort/502 after roughly 200–250s.

Expected Behavior

A response (success or a fast, structured upstream error) well before the client timeout.

Actual Behavior

The upstream connection stalls; the fetch aborts at ~248s and the router returns 502 fetch connect timeout. The same two models were also confirmed slow when called directly against NVIDIA's API (one 200 in 64s; the other aborted at 200s), indicating provider-side latency rather than a router defect.

Environment

  • Container: decolua/9router:latest, revision 21583c03e5c5d5276924efad82328ebe6e215854, version 0.5.85
  • Node 22.23.2 (Alpine)
  • Provider: NVIDIA (2 active connections, account keys not the .env key)
  • Client timeout used in testing: 150s / 240s

Logs / Evidence

  • Container logs show repeated 502 fetch connect timeout at ~248s for NVIDIA requests.
  • Direct NVIDIA API test (bypassing 9router) with the same key reproduced the slowness/abort, so this is not a 9router routing fault.

Suggested Fix

  • Provider-side: raise upstream request timeout where configurable, or exclude the affected model IDs from the available list until NVIDIA stabilises them.
  • Router-side (defensive, optional): surface upstream timeout as a clear 504 with the model id and elapsed time instead of a bare 502, and trip the existing per-model cooldown faster (see open-sse/services/accountFallback.js).

Fix Status

Open — upstream/provider-side latency; document and monitor. No local code change applied.