chroma-core/chroma · error · ValueError
CMEK gcp resource must be a string, got: {type(resource)}
Error message
CMEK gcp resource must be a string, got: {type(resource)} What it means
Error "CMEK gcp resource must be a string, got: {type(resource)}" thrown in chroma-core/chroma.
Source
Thrown at chromadb/api/types.py:2004
Args:
data: Dictionary containing provider variant and resource.
Format matches Rust serde enum serialization with snake_case.
Returns:
Cmek: Deserialized CMEK instance
Raises:
ValueError: If the provider is unsupported or data is malformed
Example:
>>> data = {'gcp': 'projects/p/locations/l/keyRings/r/cryptoKeys/k'}
>>> cmek = Cmek.from_dict(data)
"""
if "gcp" in data:
resource = data["gcp"]
if not isinstance(resource, str):
raise ValueError(
f"CMEK gcp resource must be a string, got: {type(resource)}"
)
return cls.gcp(resource)
raise ValueError(f"Unsupported or missing CMEK provider in data: {data}")
# Index Type Classes
@dataclass
class FtsIndexType:
enabled: bool
config: FtsIndexConfig
@dataclass
class VectorIndexType:
enabled: boolView on GitHub (pinned to aecdd12c8a)
When it happens
Trigger: Thrown at chromadb/api/types.py:2004 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of chroma-core/chroma@aecdd12c8a (2026-08-16).
Data as JSON: /api/errors/bee139ebbdefa6c2.
Report an issue: GitHub.