chroma-core/chroma · error · ChromaAuthError

Forbidden

Error message

Forbidden

What it means

Generic sentinel AuthError raised in authenticate_or_raise's fallback except clause: any non-AuthError exception during authentication is replaced by this bare 'Forbidden' error after the real failure is logged at debug level. It hides the underlying cause (config error, unexpected shape, etc.), so the debug log is the only place the real reason appears.

Solutions

  1. Enable debug logging on the server to see the underlying exception type, file, and line
  2. Verify the auth provider configuration and credentials file are well-formed
  3. Retry the request with a known-valid token to isolate whether the failure is token-specific
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at chromadb/auth/token_authn/__init__.py:235 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/92e2ee581e3f1cfd. Report an issue: GitHub.

Appendix: source

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

            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(
                "TokenAuthenticationServerProvider.authenticate failed: "
                f"Failed to authenticate {type(e).__name__} at {filename}:{line_number}"
            )
        time.sleep(
            random.uniform(0.001, 0.005)
        )  # add some jitter to avoid timing attacks
        raise ChromaAuthError()

View on GitHub (pinned to aecdd12c8a)