{"record":{"id":"ec27de363f1385ce","repo":"mem0ai/mem0","slug":"extra-fields-not-allowed-join-extra-fields-ec27de","errorCode":null,"errorMessage":"Extra fields not allowed: {', '.join(extra_fields)}. Please input only the following fields: {', '.join(allowed_fields)}","messagePattern":"Extra fields not allowed: (.+?)\\. Please input only the following fields: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"mem0/configs/vector_stores/milvus.py","lineNumber":37,"sourceCode":"    JACCARD = \"JACCARD\"\n\n\nclass MilvusDBConfig(BaseModel):\n    url: str = Field(\"http://localhost:19530\", description=\"Full URL for Milvus/Zilliz server\")\n    token: str = Field(None, description=\"Token for Zilliz server / local setup defaults to None.\")\n    collection_name: str = Field(\"mem0\", description=\"Name of the collection\")\n    embedding_model_dims: int = Field(1536, description=\"Dimensions of the embedding model\")\n    metric_type: str = Field(\"L2\", description=\"Metric type for similarity search\")\n    db_name: str = Field(\"\", description=\"Name of the database\")\n\n    @model_validator(mode=\"before\")\n    @classmethod\n    def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]:\n        allowed_fields = set(cls.model_fields.keys())\n        input_fields = set(values.keys())\n        extra_fields = input_fields - allowed_fields\n        if extra_fields:\n            raise ValueError(\n                f\"Extra fields not allowed: {', '.join(extra_fields)}. Please input only the following fields: {', '.join(allowed_fields)}\"\n            )\n        return values\n\n    model_config = ConfigDict(arbitrary_types_allowed=True)\n","sourceCodeStart":19,"sourceCodeEnd":43,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/mem0/configs/vector_stores/milvus.py#L19-L43","documentation":"Error \"Extra fields not allowed: {', '.join(extra_fields)}. Please input only the following fields: {', '.join(allowed_fields)}\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at mem0/configs/vector_stores/milvus.py:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the extra config fields listed and keep only the allowed Milvus fields (url, token, collection_name, etc.)."],"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"}