BerriAI/litellm · error · Exception
Error updating search tool in DB: {e}
Error message
Error updating search tool in DB: {e} What it means
Error "Error updating search tool in DB: {e}" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/search_endpoints/search_tool_registry.py:148
litellm_params: Final[str] = safe_dumps(dict(search_tool.get("litellm_params", {})))
search_tool_info: Final[str] = safe_dumps(search_tool.get("search_tool_info", {}))
# Update in DB
updated_search_tool: Final = await SearchToolsRepository(prisma_client).table.update(
where={"search_tool_id": search_tool_id},
data={
"search_tool_name": search_tool_name,
"litellm_params": litellm_params,
"search_tool_info": search_tool_info,
"updated_at": datetime.now(timezone.utc),
},
)
# Convert to dict with ISO formatted datetimes
return self._convert_prisma_to_dict(updated_search_tool)
except Exception as e:
verbose_proxy_logger.exception("Error updating search tool in DB: %s", e)
raise Exception(f"Error updating search tool in DB: {e}")
@staticmethod
async def get_all_search_tools_from_db(
prisma_client: PrismaClient,
) -> list[SearchTool]:
"""
Get all search tools from the database.
Args:
prisma_client: Prisma client instance
Returns:
List of search tool configurations
"""
try:
search_tools_from_db: Final = await call_with_db_reconnect_retry(
prisma_client,
lambda: SearchToolsRepository(prisma_client).table.find_many(View on GitHub (pinned to 77b7c6c40c)
Solutions
- Check DB connectivity and logs; fix the update payload and retry.
When it happens
Trigger: Thrown at litellm/proxy/search_endpoints/search_tool_registry.py:148 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/96ec926ae1e1eb0e.
Report an issue: GitHub.