chroma-core/chroma · error · AuthError
Bearer not found in Authorization header
Error message
Bearer not found in Authorization header
What it means
Error "Bearer not found in Authorization header" thrown in chroma-core/chroma.
Source
Thrown at chromadb/auth/token_authn/__init__.py:203
f"user {user['id']} but it's already in use by "
f"user {self._token_user_mapping[token]}"
)
self._token_user_mapping[token] = user
@trace_method(
"TokenAuthenticationServerProvider.authenticate", OpenTelemetryGranularity.ALL
)
@override
def authenticate_or_raise(self, headers: Dict[str, str]) -> UserIdentity:
try:
if self._token_transport_header.value.lower() not in headers.keys():
raise AuthError(
f"Authorization header '{self._token_transport_header.value}' not found"
)
token = headers[self._token_transport_header.value.lower()]
if self._token_transport_header == TokenTransportHeader.AUTHORIZATION:
if not token.startswith("Bearer "):
raise AuthError("Bearer not found in Authorization header")
token = re.sub(r"^Bearer ", "", token)
token = token.strip()
_check_token(token)
if token not in self._token_user_mapping:
raise AuthError("Invalid credentials: Token not found}")
user_identity = UserIdentity(
user_id=self._token_user_mapping[token]["id"],
tenant=self._token_user_mapping[token]["tenant"],
databases=self._token_user_mapping[token]["databases"],
)
return user_identity
except AuthError as e:
logger.debug(
f"TokenAuthenticationServerProvider.authenticate failed: {repr(e)}"
)View on GitHub (pinned to aecdd12c8a)
When it happens
Trigger: Thrown at chromadb/auth/token_authn/__init__.py:203 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/a979c5c4d4526031.
Report an issue: GitHub.