BerriAI/litellm · error · RuntimeError
Error getting table info: {exc}
Error message
Error getting table info: {exc} What it means
Error "Error getting table info: {exc}" thrown in BerriAI/litellm.
Source
Thrown at litellm/integrations/focus/database.py:117
return pl.DataFrame(db_response, infer_schema_length=None)
except Exception as exc:
raise RuntimeError(f"Error retrieving usage data: {exc}") from exc
async def get_table_info(self) -> dict[str, Any]:
"""Return metadata about the spend table for diagnostics."""
client: Final = self._ensure_prisma_client()
info_query: Final = """
SELECT column_name, data_type, is_nullable
FROM information_schema.columns
WHERE table_name = 'LiteLLM_DailyUserSpend'
ORDER BY ordinal_position;
"""
try:
columns_response: Final = await client.db.query_raw(info_query)
return {"columns": columns_response, "table_name": "LiteLLM_DailyUserSpend"}
except Exception as exc:
raise RuntimeError(f"Error getting table info: {exc}") from exc
View on GitHub (pinned to 6c2dcb801b)
Solutions
- Check the database connection and table permissions; see the wrapped exception.
When it happens
Trigger: Thrown at litellm/integrations/focus/database.py:117 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/b54fc70e416fe05c.
Report an issue: GitHub.