odysseus-dev/odysseus · error · HTTPException
_model_endpoint_error_message(base_url, ping)
Error message
_model_endpoint_error_message(base_url, ping)
What it means
Error "_model_endpoint_error_message(base_url, ping)" thrown in odysseus-dev/odysseus.
Source
Thrown at routes/model_routes.py:2144
getattr(existing, "hidden_models", None),
existing.pinned_models,
),
"pinned_models": _existing_pinned,
"online": True,
"status": "online",
"existing": True,
"endpoint_kind": existing_kind,
"category": _classify_endpoint(existing.base_url, existing_kind),
}
finally:
_db_dedup.close()
model_ids = _probe_endpoint(base_url, api_key.strip() or None, timeout=explicit_timeout) if should_probe else []
ping = {"reachable": False, "error": None}
if (should_probe or requested_kind in ("api", "proxy")) and not model_ids:
ping = _ping_endpoint(base_url, api_key.strip() or None, timeout=min(explicit_timeout, 10.0))
if require_model_list and not model_ids:
raise HTTPException(400, _model_endpoint_error_message(base_url, ping))
ep_id = str(uuid.uuid4())[:8]
db = SessionLocal()
try:
_st_raw = (supports_tools or "").strip().lower()
_st = True if _st_raw in ("true", "1", "yes") else (False if _st_raw in ("false", "0", "no") else None)
_pinned = _normalize_model_ids(pinned_models)
# Stamp owner so the picker only shows this endpoint to the admin
# who added it. Pass `shared=true` to mark it null-owner (visible
# to all users), preserving the pre-fix "everyone sees everything"
# behaviour for endpoints the admin explicitly intends to share.
from src.auth_helpers import get_current_user as _gcu
_shared_flag = (shared or "").strip().lower() in ("true", "1", "yes")
_owner_val = None if _shared_flag else (_gcu(request) or None)
ep = ModelEndpoint(
id=ep_id,
name=name.strip(),
base_url=base_url,View on GitHub (pinned to f9235ebbf1)
Solutions
- Fix the endpoint according to the ping error message returned.
- Verify the endpoint URL, credentials, and that the server is running.
When it happens
Trigger: Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.
Common situations: See trigger scenarios.
AI-assisted analysis of odysseus-dev/odysseus@f9235ebbf1 (2026-08-14).
Data as JSON: /api/errors/aea3d66f2295ef66.
Report an issue: GitHub.