{"record":{"id":"86c1b67dcb542bc5","repo":"langflow-ai/langflow","slug":"str-exc-86c1b6","errorCode":null,"errorMessage":"str(exc)","messagePattern":"str\\(exc\\)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":197,"sourceCode":"    \"\"\"Retrieve all component types with compression for better performance.\n\n    Returns a compressed response containing all available component types,\n    with display_names translated to the locale indicated by Accept-Language.\n    \"\"\"\n    from langflow.interface.components import get_and_cache_all_types_dict\n    from langflow.utils.i18n import build_component_display_names, translate_component_dict\n\n    try:\n        all_types_en = await get_and_cache_all_types_dict(settings_service=get_settings_service())\n\n        locale = getattr(request.state, \"locale\", \"en\")\n        all_types = translate_component_dict(all_types_en, locale) if locale != \"en\" else all_types_en\n\n        component_display_names = build_component_display_names(all_types_en)\n        return compress_response({**all_types, \"component_display_names\": component_display_names})\n\n    except Exception as exc:\n        raise HTTPException(status_code=500, detail=str(exc)) from exc\n\n\ndef validate_input_and_tweaks(input_request: SimplifiedAPIRequest) -> None:\n    # If the input_value is not None and the input_type is \"chat\"\n    # then we need to check the tweaks if the ChatInput component is present\n    # and if its input_value is not None\n    # if so, we raise an error\n    if not input_request.tweaks:\n        return\n\n    for key, value in input_request.tweaks.items():\n        if not isinstance(value, dict):\n            continue\n\n        input_value = value.get(\"input_value\")\n        if input_value is None:\n            continue\n","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L179-L215","documentation":"Error \"str(exc)\" thrown in langflow-ai/langflow.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":["Inspect the logged exception details in the browser console or server logs to identify the underlying failure.","Retry the request; if it persists, verify the flow id and authentication credentials."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}