NVIDIA upstream connect timeouts (~250s) surface as 502
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
- Send a chat completion for
nvidia/z-ai/glm-5.3(ornvidia/nemotron-3.5-lightning-30b-a3b) through the router athttp://localhost:20128/v1/chat/completions. - Wait for the upstream call.
- 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, revision21583c03e5c5d5276924efad82328ebe6e215854, version 0.5.85 - Node 22.23.2 (Alpine)
- Provider: NVIDIA (2 active connections, account keys not the
.envkey) - Client timeout used in testing: 150s / 240s
Logs / Evidence
- Container logs show repeated
502 fetch connect timeoutat ~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.
Source: decolua/9router