BerriAI/litellm · error · HTTPException

Failed to get JWT key mapping info.

Error message

Failed to get JWT key mapping info.

What it means

Error "Failed to get JWT key mapping info." thrown in BerriAI/litellm.

Source

Thrown at litellm/proxy/management_endpoints/jwt_key_mapping_endpoints.py:242

):
    from litellm.proxy.proxy_server import prisma_client

    # Admin Viewer follows the read-parity rule.
    if not _user_has_admin_view(user_api_key_dict):
        raise HTTPException(status_code=403, detail="Only proxy admins can get JWT key mapping info")

    if prisma_client is None:
        raise HTTPException(status_code=500, detail="Database not connected")

    try:
        mapping: Final = await JWTKeyMappingRepository(prisma_client).table.find_unique(where={"id": id})
        if mapping is None:
            raise HTTPException(status_code=404, detail="Mapping not found")
        return _to_response(mapping)
    except HTTPException:
        raise
    except Exception:
        raise HTTPException(status_code=500, detail="Failed to get JWT key mapping info.")

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Check proxy logs for the underlying database error.
  2. Verify the mapping ID is correct and the database connection is healthy, then retry.

When it happens

Trigger: Thrown at litellm/proxy/management_endpoints/jwt_key_mapping_endpoints.py:242 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/54d2e20921ae43f6. Report an issue: GitHub.