{"record":{"id":"638834fdf0a434eb","repo":"mem0ai/mem0","slug":"org-id-and-project-id-must-be-set-to-access-instru","errorCode":null,"errorMessage":"org_id and project_id must be set to access instructions or categories","messagePattern":"org_id and project_id must be set to access instructions or categories","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"mem0/client/main.py","lineNumber":710,"sourceCode":"        Returns:\n            Dictionary containing the requested fields.\n\n        Raises:\n            ValidationError: If the input data is invalid.\n            AuthenticationError: If authentication fails.\n            RateLimitError: If rate limits are exceeded.\n            MemoryQuotaExceededError: If memory quota is exceeded.\n            NetworkError: If network connectivity issues occur.\n            MemoryNotFoundError: If the memory doesn't exist (for updates/deletes).\n            ValueError: If org_id or project_id are not set.\n        \"\"\"\n        logger.warning(\n            \"get_project() method is going to be deprecated in version v1.0 \"\n            \"of the package. Please use the client.project.get() method \"\n            \"instead.\"\n        )\n        if not (self.org_id and self.project_id):\n            raise ValueError(\"org_id and project_id must be set to access instructions or categories\")\n\n        params = self._prepare_params({\"fields\": fields})\n        response = self.client.get(\n            f\"/api/v1/orgs/organizations/{self.org_id}/projects/{self.project_id}/\",\n            params=params,\n        )\n        response.raise_for_status()\n        capture_client_event(\n            \"client.get_project_details\",\n            self,\n            {\"fields\": fields, \"sync_type\": \"sync\"},\n        )\n        return response.json()\n\n    @api_error_handler\n    def update_project(\n        self,\n        options: Optional[ProjectUpdateOptions] = None,","sourceCodeStart":692,"sourceCodeEnd":728,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/mem0/client/main.py#L692-L728","documentation":"Error \"org_id and project_id must be set to access instructions or categories\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at mem0/client/main.py:710 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Initialize MemoryClient with org_id and project_id before accessing instructions or categories."],"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-15T22:17:37.221Z"}