langflow-ai/langflow · error · InvalidChatInputError

If you pass an input_value to the text input, you cannot pas

Error message

If you pass an input_value to the text input, you cannot pass a tweak with the same name.

What it means

Error "If you pass an input_value to the text input, you cannot pass a tweak with the same name." thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/endpoints.py:229

        input_value = value.get("input_value")
        if input_value is None:
            continue

        request_has_input = input_request.input_value is not None

        if any(chat_key in key for chat_key in ("ChatInput", "Chat Input")):
            if request_has_input and input_request.input_type == "chat":
                msg = "If you pass an input_value to the chat input, you cannot pass a tweak with the same name."
                raise InvalidChatInputError(msg)

        elif (
            any(text_key in key for text_key in ("TextInput", "Text Input"))
            and request_has_input
            and input_request.input_type == "text"
        ):
            msg = "If you pass an input_value to the text input, you cannot pass a tweak with the same name."
            raise InvalidChatInputError(msg)


async def simple_run_flow(
    flow: Flow,
    input_request: SimplifiedAPIRequest,
    *,
    stream: bool = False,
    api_key_user: User | None = None,
    event_manager: EventManager | None = None,
    context: dict | None = None,
    run_id: str | None = None,
):
    validate_input_and_tweaks(input_request)
    try:
        task_result: list[RunOutputs] = []
        user_id = api_key_user.id if api_key_user else None
        flow_id_str = str(flow.id)
        if flow.data is None:

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Remove the tweak that shares the same name as the text input, or drop input_value and pass the value only via tweaks.

When it happens

Trigger: Occurs when a caller passes both an input_value for a text input and a tweak with the same input name in the same /run request, creating an ambiguous override.

Common situations: See trigger scenarios.


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