{"record":{"id":"bc9b011ffeefffcc","repo":"odysseus-dev/odysseus","slug":"endpoint-unreachable-e","errorCode":null,"errorMessage":"Endpoint unreachable: {e}","messagePattern":"Endpoint unreachable: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"routes/embedding_routes.py","lineNumber":285,"sourceCode":"        ok, reason = check_outbound_url(\n            url,\n            block_private=os.getenv(\"EMBEDDING_BLOCK_PRIVATE_IPS\", \"false\").lower() == \"true\",\n        )\n        if not ok:\n            raise HTTPException(400, f\"Rejected endpoint URL: {reason}\")\n\n        # Quick health check\n        try:\n            import httpx\n            resp = httpx.post(\n                url,\n                json={\"input\": [\"test\"], \"model\": model or \"test\"},\n                headers={\"Authorization\": f\"Bearer {api_key}\"} if api_key else {},\n                timeout=10,\n            )\n            resp.raise_for_status()\n        except Exception as e:\n            raise HTTPException(400, f\"Endpoint unreachable: {e}\")\n\n        # Persist and set in environment for immediate use\n        data = {\"url\": url}\n        if model:\n            data[\"model\"] = model\n        if api_key:\n            from src.secret_storage import encrypt\n            data[\"api_key\"] = encrypt(api_key)\n\n        _save_custom_endpoint(data)\n        os.environ[\"EMBEDDING_URL\"] = url\n        if model:\n            os.environ[\"EMBEDDING_MODEL\"] = model\n        if api_key:\n            os.environ[\"EMBEDDING_API_KEY\"] = api_key\n\n        # Reset the RAG singleton so it picks up the new endpoint\n        import src.rag_singleton as _rs","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/embedding_routes.py#L267-L303","documentation":"Error \"Endpoint unreachable: {e}\" 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":["Verify the endpoint server is running and reachable from this host.","Check the URL, port, and firewall rules, then retry the connectivity test."],"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"}