{"record":{"id":"9e3e2932d80ff757","repo":"odysseus-dev/odysseus","slug":"model-not-found-at-server-available-join-a","errorCode":null,"errorMessage":"Model not found at server. Available: {', '.join(avail)}","messagePattern":"Model not found at server\\. Available: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"routes/session_routes.py","lineNumber":422,"sourceCode":"            import os as _os\n            req_base = _os.path.basename(model_to_use.rstrip(\"/\"))\n            avail = list_model_ids(\n                endpoint_url,\n                timeout=SESSION_MODEL_VALIDATION_TIMEOUT,\n                headers=validation_headers,\n                owner=user,\n                endpoint_id=endpoint_id.strip() if endpoint_id else None,\n            )\n            if not avail:\n                raise HTTPException(400, \"Cannot reach /v1/models\")\n            if model_to_use not in avail:\n                found = None\n                for a in avail:\n                    if _os.path.basename(a.rstrip(\"/\")) == req_base:\n                        found = a\n                        break\n                if not found:\n                    raise HTTPException(400,\n                                        f\"Model not found at server. Available: {', '.join(avail)}\")\n                model_to_use = found\n        \n        sid = str(uuid.uuid4())\n        user = effective_user(request)\n        session = session_manager.create_session(\n            session_id=sid,\n            name=name or \"\",\n            endpoint_url=endpoint_url or \"\",\n            model=model_to_use,\n            rag=str(rag).lower() == \"true\" if rag else False,\n            owner=user,\n        )\n        # Set auth headers for custom API-key endpoints\n        resolved_key = request_api_key\n        resolved_base = endpoint_url\n        if not resolved_key and endpoint_api_key:\n            resolved_key = endpoint_api_key","sourceCodeStart":404,"sourceCodeEnd":440,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/session_routes.py#L404-L440","documentation":"Error \"Model not found at server. Available: {', '.join(avail)}\" 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 one of the models listed as available on the server.","Pull or load the requested model on the endpoint server first."],"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"}