[VDR][v0.8.0] ERR-3a7999da · An unreachable model endpoint is reported as 'Model HTTP 500' with a raw connection-error repr

Open Beginner friendly
#7,190 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api, backend

Research direction

Read nemo_gym/server_runtime/base_server.py around line 669, then inspect the exception handler and its existing error response tests. Trace how connection errors reach the CLI and check how related issue #7185 handles model boundary errors. Done means unreachable model endpoints produce a typed connection failure that names policy_base_url and does not claim an HTTP status.

Written by the indexing model from the issue text.

Description

area:model Rollout vdr

Severity: 🟡 medium | Category: Error Handling | Finding ID: ERR-3a7999da

Location: nemo_gym/server_runtime/base_server.py:669

Problem

With the model endpoint down, the run now fails within about 5 s, which is good. But the CLI message is:

Model HTTP 500: "ClientConnectorError(ConnectionKey(host='127.0.0.1', port=14155, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, ...

The server's exception handler returns repr(e) with status 500 (:669). No HTTP response was received, so "HTTP 500" is wrong, and the message neither mentions policy_base_url nor says that nothing is listening. The Model Server log also prints a banner saying the exception repr "is returned to the model" (:665), which is confusing in a Model Server.

Suggested fix

In the Model Server, map ClientConnectorError and ClientOSError to a typed failure such as Cannot connect to model endpoint http://127.0.0.1:14155/v1 (connection refused). Check policy_base_url and that the server is running. Don't label it with an HTTP status.

Related: #7185 (malformed JSON from the model endpoint, also reported as "Model HTTP 500"). Fixing both together gives errors at the model boundary one shape.


Found by the error-quality-auditor critic in DX review Gym-1-20261110220030 (v0.8.0 cycle) at de6c919bb. Rechecked on main at 64d738eca on 2 Dec 2026: the handler still returns repr(e) with status 500. Parent tracker #2214.

Dominant language
Python
Stars
1.4k
Forks
490
Avg merge
3d 15h
Merged PRs (30d)
386

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA-NeMo/Gym

All issues in NVIDIA-NeMo/Gym

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.