{"record":{"id":"0297bf254eb7f691","repo":"mem0ai/mem0","slug":"must-provide-at-least-one-of-connection-params-a","errorCode":null,"errorMessage":"Must provide at least one of `connection_params` and `client`","messagePattern":"Must provide at least one of `connection_params` and `client`","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"mem0/configs/vector_stores/oracledb.py","lineNumber":80,"sourceCode":"    index_type: Literal[\"HNSW\", \"IVF\"] = Field(\"HNSW\", description=\"Optional index type, HNSW or IVF\")\n    index_name: Optional[str] = Field(None, description=\"Optional custom name for the vector index\")\n    index_parameters: Optional[dict] = Field(\n        None,\n        description=\"Optional structured CREATE VECTOR INDEX parameters\",\n    )\n    index_accuracy: Optional[int] = Field(None, description=\"Optional index accuracy\")\n\n    @field_validator(\"distance_metric\", \"index_type\", mode=\"before\")\n    @classmethod\n    def _normalize_uppercase(cls, value: Any) -> Any:\n        return value.upper() if isinstance(value, str) else value\n\n    @model_validator(mode=\"after\")\n    def _validate_model(self):\n        \"\"\"Normalise attributes and validate identifiers/metrics.\"\"\"\n\n        if not self.connection_params and not self.client:\n            raise ValueError(\"Must provide at least one of `connection_params` and `client`\")\n\n        if self.index_name is None:\n            self.index_name = f\"{self.collection_name}_VEC_IDX\"\n\n        self.index_name = _quote_identifier(self.index_name)\n        self.collection_name = _quote_identifier(self.collection_name)\n\n        if self.index_parameters is not None:\n            parameter_model = HnswParams if self.index_type == \"HNSW\" else IvfParams\n            self.index_parameters = parameter_model.model_validate(self.index_parameters).model_dump(\n                by_alias=True,\n                exclude_none=True,\n            )\n\n        if self.index_accuracy is not None:\n            if not (0 < self.index_accuracy <= 100):\n                raise ValueError(\"`index_accuracy` must be between 1 and 100\")\n","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/mem0/configs/vector_stores/oracledb.py#L62-L98","documentation":"Error \"Must provide at least one of `connection_params` and `client`\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at mem0/configs/vector_stores/oracledb.py:80 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide connection_params (user, password, dsn) or pass a pre-configured oracledb client."],"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"}