{"record":{"id":"8c3c8a9fc0ad2338","repo":"odysseus-dev/odysseus","slug":"endpoint-not-found","errorCode":null,"errorMessage":"Endpoint not found","messagePattern":"Endpoint not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"routes/model_routes.py","lineNumber":2265,"sourceCode":"            \"base_url\": base_url,\n            \"online\": bool(models) or bool(ping.get(\"reachable\")),\n            \"status\": \"online\" if models else (\"loading\" if ping.get(\"loading\") else (\"empty\" if ping.get(\"reachable\") else \"offline\")),\n            \"ping_error\": ping.get(\"error\") if ping else None,\n            \"models\": models,\n            \"count\": len(models),\n            \"endpoint_kind\": requested_kind,\n            \"category\": _classify_endpoint(base_url, requested_kind),\n        }\n\n    @router.get(\"/model-endpoints/{ep_id}/probe\")\n    def probe_endpoint_models(ep_id: str, request: Request):\n        \"\"\"Re-probe all models on an endpoint. Updates hidden_models and streams SSE results.\"\"\"\n        require_admin(request)\n        db = SessionLocal()\n        try:\n            ep = db.query(ModelEndpoint).filter(ModelEndpoint.id == ep_id).first()\n            if not ep:\n                raise HTTPException(404, \"Endpoint not found\")\n            ep_data = {\"id\": ep.id, \"name\": ep.name, \"base_url\": ep.base_url, \"api_key\": ep.api_key}\n        finally:\n            db.close()\n\n        base = _normalize_base(ep_data[\"base_url\"])\n        all_models = _probe_endpoint(base, ep_data[\"api_key\"])\n        chat_models = [m for m in all_models if _is_chat_model(m)]\n        skipped = len(all_models) - len(chat_models)\n\n        def _stream():\n            yield f\"data: {json.dumps({'type': 'probe_start', 'endpoint': ep_data['name'], 'model_count': len(chat_models), 'skipped': skipped})}\\n\\n\"\n            failed = []\n            ok_count = 0\n            for mid in chat_models:\n                result = _probe_single_model(base, ep_data[\"api_key\"], mid, timeout=8)\n                result[\"model\"] = mid\n                result[\"type\"] = \"probe_result\"\n                result[\"endpoint\"] = ep_data[\"name\"]","sourceCodeStart":2247,"sourceCodeEnd":2283,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/model_routes.py#L2247-L2283","documentation":"Error \"Endpoint not found\" thrown in odysseus-dev/odysseus.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":["Refresh the endpoint list; the endpoint may have been deleted.","Verify the endpoint id is correct."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f9235ebbf13f693a6fd29ce70b097f6ec83705bf","analyzedAt":"2026-08-14T21:47:48.359Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}