chroma-core/chroma · error · AuthError

Invalid credentials: Token not found}

Error message

Invalid credentials: Token not found}

What it means

Error "Invalid credentials: Token not found}" thrown in chroma-core/chroma.

Source

Thrown at chromadb/auth/token_authn/__init__.py:210

    )
    @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)}"
            )
        except Exception as e:
            tb = traceback.extract_tb(e.__traceback__)
            # Get the last call stack
            last_call_stack = tb[-1]
            line_number = last_call_stack.lineno
            filename = last_call_stack.filename
            logger.debug(

View on GitHub (pinned to aecdd12c8a)

When it happens

Trigger: Thrown at chromadb/auth/token_authn/__init__.py:210 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of chroma-core/chroma@aecdd12c8a (2026-08-16). Data as JSON: /api/errors/6a0841f85561a870. Report an issue: GitHub.