langflow-ai/langflow · error · HTTPException

Authentication required to run flows.

Error message

Authentication required to run flows.

What it means

Error "Authentication required to run flows." thrown in langflow-ai/langflow.

Source

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

                    type=input_request.input_type,
                )
            ]
        if input_request.output_component:
            outputs = [input_request.output_component]
        else:
            outputs = [
                vertex.id
                for vertex in graph.vertices
                if input_request.output_type == "debug"
                or (
                    vertex.is_output
                    and (input_request.output_type == "any" or input_request.output_type in vertex.id.lower())  # type: ignore[operator]
                )
            ]

        # Create a WORKFLOW job record so memory-base on_flow_output can track this run.
        if user_id is None:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Authentication required to run flows.",
            )

        try:
            _job_svc = get_job_service()
            await _job_svc.create_job(
                job_id=run_id_uuid,
                flow_id=flow.id,
                user_id=user_id,
                job_type=JobType.WORKFLOW,
            )
            task_result, session_id = await _job_svc.execute_with_status(
                run_id_uuid,
                run_graph_internal,
                graph=graph,
                flow_id=flow_id_str,
                session_id=input_request.session_id,

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Log in and include a valid session cookie or x-api-key header with the request.
  2. If auto-login is expected, enable it in the auth settings.

When it happens

Trigger: Occurs when an unauthenticated request attempts to run a flow while auto-login is disabled and no API key or valid session is provided.

Common situations: See trigger scenarios.

Understand the failure class


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