{"record":{"id":"2591aecc6067d3cc","repo":"odysseus-dev/odysseus","slug":"endpoint-not-found-or-disabled","errorCode":null,"errorMessage":"Endpoint not found or disabled","messagePattern":"Endpoint not found or disabled","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"routes/research/research_routes.py","lineNumber":522,"sourceCode":"                        if not privs.get(\"can_use_research\", True):\n                            raise HTTPException(403, f\"Your account is not allowed to can use research.\")\n                    except HTTPException:\n                        raise\n                    except Exception:\n                        pass\n                user = tool_owner\n        session_id = f\"rp-{uuid.uuid4().hex[:12]}\"\n\n        if body.endpoint_id:\n            from src.database import SessionLocal\n            db = SessionLocal()\n            try:\n                # Owner-scoped: never resolve another user's private endpoint\n                # (and its decrypted api_key / internal base_url). A scoped miss\n                # reads as 404 so the endpoint's existence isn't revealed.\n                ep = _owned_enabled_endpoint(db, user, body.endpoint_id)\n                if not ep:\n                    raise HTTPException(404, \"Endpoint not found or disabled\")\n                resolved = _resolve_endpoint_runtime(ep, owner=user, model=body.model)\n                if not resolved:\n                    raise HTTPException(400, \"Endpoint is not configured with a usable model.\")\n                ep_url, ep_model, ep_headers = resolved\n            finally:\n                db.close()\n        else:\n            ep_url, ep_model, ep_headers = resolve_endpoint(\"research\", owner=user)\n            if not ep_url:\n                ep_url, ep_model, ep_headers = resolve_endpoint(\"utility\", owner=user)\n            # When neither research nor utility is configured, use the user's\n            # configured DEFAULT model (default_endpoint_id/default_model) rather\n            # than arbitrarily grabbing the first enabled endpoint's first model\n            # (which surfaced gpt-3.5). \"Default\" should mean the default model.\n            if not ep_url:\n                ep_url, ep_model, ep_headers = resolve_endpoint(\"default\", owner=user)\n            if not ep_url:\n                ep_url, ep_model, ep_headers = resolve_endpoint(\"chat\", owner=user)","sourceCodeStart":504,"sourceCodeEnd":540,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/research/research_routes.py#L504-L540","documentation":"Error \"Endpoint not found or disabled\" 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":["Choose an enabled endpoint from the list.","Re-enable or recreate the endpoint in Settings."],"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"}