{"record":{"id":"cb62b4101ef3f40c","repo":"mem0ai/mem0","slug":"resource-not-found-path-cb62b4","errorCode":null,"errorMessage":"Resource not found: {path}","messagePattern":"Resource not found: (.+?)","errorType":"http","errorClass":"NotFoundError","httpStatus":404,"severity":"error","filePath":"cli/python/src/mem0_cli/backend/platform.py","lineNumber":45,"sourceCode":"            headers={\n                \"Authorization\": f\"Token {config.api_key}\",\n                \"Content-Type\": \"application/json\",\n                \"X-Mem0-Source\": \"cli\",\n                \"X-Mem0-Client-Language\": \"python\",\n                \"X-Mem0-Client-Version\": __version__,\n            },\n            timeout=30.0,\n        )\n\n    def _request(self, method: str, path: str, **kwargs: Any) -> Any:\n        from mem0_cli.state import capture_notice, is_agent_mode\n\n        self._client.headers[\"X-Mem0-Caller-Type\"] = \"agent\" if is_agent_mode() else \"user\"\n        resp = self._client.request(method, path, **kwargs)\n        if resp.status_code == 401:\n            raise AuthError(\"Authentication failed. Your API key may be invalid or expired.\")\n        if resp.status_code == 404:\n            raise NotFoundError(f\"Resource not found: {path}\")\n        if resp.status_code == 400:\n            # Extract API error detail when available\n            try:\n                detail = resp.json().get(\"detail\", resp.text)\n            except Exception:\n                detail = resp.text\n            raise APIError(f\"Bad request to {path}: {detail}\")\n        resp.raise_for_status()\n        if resp.status_code == 204:\n            return {}\n        data = resp.json()\n\n        # Pull the unclaimed-Agent-Mode notice out of the body (or the header\n        # fallback for endpoints that return non-dict / non-dict-leading\n        # payloads) and stash it for end-of-command surfacing.\n        notice = None\n        if isinstance(data, dict) and \"mem0_notice\" in data:\n            notice = data.pop(\"mem0_notice\")","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/cli/python/src/mem0_cli/backend/platform.py#L27-L63","documentation":"Error \"Resource not found: {path}\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at cli/python/src/mem0_cli/backend/platform.py:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the requested path (memory, entity, or project ID) exists.","Verify the ID spelling and that the resource belongs to your org/project."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"001c235229be8795e3834520467bd0d661ed8f34","analyzedAt":"2026-08-15T01:55:42.685Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}