BerriAI/litellm · error · HTTPException

No fields to update

Error message

No fields to update

What it means

HTTPException raised by the workflow-run update endpoint when the request body contains no updatable fields — status, output, and metadata are all None, so there is nothing to write. It fails fast rather than issuing a no-op database update.

Source

Thrown at litellm/proxy/management_endpoints/workflow_management_endpoints.py:333

    data: WorkflowRunUpdateRequest,
    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
):
    """Update status, metadata, or output on a workflow run."""
    from litellm.proxy.proxy_server import prisma_client

    if prisma_client is None:
        raise HTTPException(status_code=500, detail=CommonProxyErrors.db_not_connected_error.value)

    update: Final[_RunUpdateData] = {}
    if data.status is not None:
        update["status"] = data.status
    if data.output is not None:
        update["output"] = _json(data.output)
    if data.metadata is not None:
        update["metadata"] = _json(data.metadata)

    if not update:
        raise HTTPException(status_code=400, detail="No fields to update")

    # Enforce ownership before writing.
    await _require_run(prisma_client, run_id, user_api_key_dict)

    try:
        run: Final[_RunRow | None] = await WorkflowRunRepository(prisma_client).table.update(
            where={"run_id": run_id},
            data=update,
        )
        if run is None:
            raise HTTPException(status_code=404, detail=f"Run '{run_id}' not found")
        return run
    except HTTPException:
        raise
    except Exception as e:
        verbose_proxy_logger.exception("Error updating workflow run: %s", e)
        raise HTTPException(status_code=500, detail=str(e))

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Include at least one field to update in the request body.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at litellm/proxy/management_endpoints/workflow_management_endpoints.py:333 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/91e9ca1899ebbee6. Report an issue: GitHub.