langflow-ai/langflow · error · HTTPException

Deployment provider create result contains a tool binding wi

Error message

Deployment provider create result contains a tool binding with an empty tool_id.

What it means

Error "Deployment provider create result contains a tool binding with an empty tool_id." thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/mappers/deployments/watsonx_orchestrate/mapper.py:986

        """Shape create result provider_data with created-tools semantics.

        ``created_tools`` is populated directly from ``tools_with_refs``. Each
        entry must carry a flow-version UUID ``source_ref`` and a non-empty
        provider ``tool_id``.
        """
        adapter_provider_result = self.parse_adapter_slot(
            slot=WXO_ADAPTER_PAYLOAD_SCHEMAS.deployment_create_result,
            slot_name="deployment_create_result",
            raw=result.provider_result,
            operation="creating the deployment",
        )
        created_tools: list[WatsonxApiCreatedTool] = []
        for binding in adapter_provider_result.tools_with_refs:
            tool_id = str(binding.tool_id or "").strip()
            source_ref = str(binding.source_ref or "").strip()
            if not tool_id:
                msg = "Deployment provider create result contains a tool binding with an empty tool_id."
                raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg)
            if not source_ref:
                msg = (
                    "Deployment provider create result contains a tool binding with an empty source_ref "
                    f"for tool_id={tool_id!r}."
                )
                raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg)
            try:
                created_tool = WatsonxApiCreatedTool(
                    flow_version_id=source_ref,
                    tool_id=tool_id,
                )
            except ValidationError as exc:
                msg = (
                    "Deployment provider create result contains a created tool binding with a non-UUID "
                    f"source_ref={source_ref!r} for tool_id={tool_id!r}. A flow version id was expected."
                )
                raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg) from exc
            created_tools.append(created_tool)

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Retry the create; the provider returned a tool binding without a tool_id. Report to the provider integration maintainer if reproducible.

When it happens

Trigger: Occurs when the provider create result includes a tool binding whose tool_id is empty.

Common situations: See trigger scenarios.


AI-assisted analysis of langflow-ai/langflow@976ec789d2 (2026-08-14). Data as JSON: /api/errors/6fae94e686d37d6e. Report an issue: GitHub.