langflow-ai/langflow · error · HTTPException

str(exc)

Error message

str(exc)

What it means

Error "str(exc)" thrown in langflow-ai/langflow.

Source

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

    """Retrieve all component types with compression for better performance.

    Returns a compressed response containing all available component types,
    with display_names translated to the locale indicated by Accept-Language.
    """
    from langflow.interface.components import get_and_cache_all_types_dict
    from langflow.utils.i18n import build_component_display_names, translate_component_dict

    try:
        all_types_en = await get_and_cache_all_types_dict(settings_service=get_settings_service())

        locale = getattr(request.state, "locale", "en")
        all_types = translate_component_dict(all_types_en, locale) if locale != "en" else all_types_en

        component_display_names = build_component_display_names(all_types_en)
        return compress_response({**all_types, "component_display_names": component_display_names})

    except Exception as exc:
        raise HTTPException(status_code=500, detail=str(exc)) from exc


def validate_input_and_tweaks(input_request: SimplifiedAPIRequest) -> None:
    # If the input_value is not None and the input_type is "chat"
    # then we need to check the tweaks if the ChatInput component is present
    # and if its input_value is not None
    # if so, we raise an error
    if not input_request.tweaks:
        return

    for key, value in input_request.tweaks.items():
        if not isinstance(value, dict):
            continue

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

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Inspect the logged exception details in the browser console or server logs to identify the underlying failure.
  2. Retry the request; if it persists, verify the flow id and authentication credentials.

When it happens

Trigger: Occurs when an unexpected exception is raised while running a flow via the /run endpoint in endpoints.py; the raw exception string is surfaced as the error detail.

Common situations: See trigger scenarios.


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