{"record":{"id":"bee139ebbdefa6c2","repo":"chroma-core/chroma","slug":"cmek-gcp-resource-must-be-a-string-got-type-res","errorCode":null,"errorMessage":"CMEK gcp resource must be a string, got: {type(resource)}","messagePattern":"CMEK gcp resource must be a string, got: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"chromadb/api/types.py","lineNumber":2004,"sourceCode":"\n        Args:\n            data: Dictionary containing provider variant and resource.\n                  Format matches Rust serde enum serialization with snake_case.\n\n        Returns:\n            Cmek: Deserialized CMEK instance\n\n        Raises:\n            ValueError: If the provider is unsupported or data is malformed\n\n        Example:\n            >>> data = {'gcp': 'projects/p/locations/l/keyRings/r/cryptoKeys/k'}\n            >>> cmek = Cmek.from_dict(data)\n        \"\"\"\n        if \"gcp\" in data:\n            resource = data[\"gcp\"]\n            if not isinstance(resource, str):\n                raise ValueError(\n                    f\"CMEK gcp resource must be a string, got: {type(resource)}\"\n                )\n            return cls.gcp(resource)\n        raise ValueError(f\"Unsupported or missing CMEK provider in data: {data}\")\n\n\n# Index Type Classes\n\n\n@dataclass\nclass FtsIndexType:\n    enabled: bool\n    config: FtsIndexConfig\n\n\n@dataclass\nclass VectorIndexType:\n    enabled: bool","sourceCodeStart":1986,"sourceCodeEnd":2022,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/chromadb/api/types.py#L1986-L2022","documentation":"Error \"CMEK gcp resource must be a string, got: {type(resource)}\" thrown in chroma-core/chroma.","triggerScenarios":"Thrown at chromadb/api/types.py:2004 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"aecdd12c8a891610db8653630b066b32ceb678b5","analyzedAt":"2026-08-16T21:53:27.228Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}