BerriAI/litellm · error · Exception
Error getting search tool from DB: {e}
Error message
Error getting search tool from DB: {e} What it means
Error "Error getting search tool from DB: {e}" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/search_endpoints/search_tool_registry.py:209
prisma_client: Prisma client instance
Returns:
Search tool configuration or None if not found
"""
try:
search_tool: Final = await SearchToolsRepository(prisma_client).table.find_unique(
where={"search_tool_id": search_tool_id}
)
if not search_tool:
return None
# Convert Prisma result to dict with ISO formatted datetimes
search_tool_dict: Final = self._convert_prisma_to_dict(search_tool)
return SearchTool(**search_tool_dict)
except Exception as e:
verbose_proxy_logger.exception("Error getting search tool from DB: %s", e)
raise Exception(f"Error getting search tool from DB: {e}")
async def get_search_tool_by_name_from_db(
self, search_tool_name: str, prisma_client: PrismaClient
) -> SearchTool | None:
"""
Get a search tool by its name from the database.
Args:
search_tool_name: Name of search tool to retrieve
prisma_client: Prisma client instance
Returns:
Search tool configuration or None if not found
"""
try:
search_tool: Final = await SearchToolsRepository(prisma_client).table.find_unique(
where={"search_tool_name": search_tool_name}
)View on GitHub (pinned to 77b7c6c40c)
Solutions
- Check DB connectivity and logs; verify the tool ID and retry.
When it happens
Trigger: Thrown at litellm/proxy/search_endpoints/search_tool_registry.py:209 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/42bc7cac434896d4.
Report an issue: GitHub.