{"record":{"id":"7d8be0d575db86c7","repo":"odysseus-dev/odysseus","slug":"model-endpoint-no-longer-exists","errorCode":null,"errorMessage":"Model endpoint no longer exists","messagePattern":"Model endpoint no longer exists","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"routes/session_routes.py","lineNumber":360,"sourceCode":"        user = effective_user(request)\n        endpoint_api_key = \"\"\n        endpoint_base_url = \"\"\n        _reject_raw_endpoint_url_for_non_admin(request, user, endpoint_id, endpoint_url)\n        if endpoint_id and endpoint_id.strip():\n            from core.database import ModelEndpoint\n            from src.auth_helpers import owner_filter\n            from src.endpoint_resolver import build_chat_url, normalize_base\n            _db = SessionLocal()\n            try:\n                q = _db.query(ModelEndpoint).filter(\n                    ModelEndpoint.id == endpoint_id.strip(),\n                    ModelEndpoint.is_enabled == True,\n                )\n                if user:\n                    q = owner_filter(q, ModelEndpoint, user)\n                endpoint_row = q.first()\n                if not endpoint_row:\n                    raise HTTPException(400, \"Model endpoint no longer exists\")\n                endpoint_base_url = endpoint_row.base_url or \"\"\n                endpoint_api_key = endpoint_row.api_key or \"\"\n                endpoint_url = build_chat_url(normalize_base(endpoint_base_url))\n            finally:\n                _db.close()\n\n        if not endpoint_url and not skip_val:\n            raise HTTPException(400, \"endpoint_url is required (choose from /api/models)\")\n\n        model_to_use = model\n        request_api_key = api_key.strip() if api_key else \"\"\n        effective_api_key = request_api_key or endpoint_api_key\n        validation_headers = None\n        if effective_api_key:\n            from src.endpoint_resolver import build_headers\n            validation_headers = build_headers(effective_api_key, endpoint_base_url or endpoint_url)\n\n        if skip_val:","sourceCodeStart":342,"sourceCodeEnd":378,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/session_routes.py#L342-L378","documentation":"Error \"Model endpoint no longer exists\" 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":["Pick another model endpoint; the previous one was removed.","Update the session's model in the model picker."],"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-15T17:31:12.345Z"}