langflow-ai/langflow · error · HTTPException

Failed to get direct Streamable HTTP URL

Error message

Failed to get direct Streamable HTTP URL

What it means

Error "Failed to get direct Streamable HTTP URL" thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/mcp_projects.py:711

                        response["result"] = {
                            "project_id": str(project_id),
                            "uses_composer": False,
                            "error_message": "OAuth authentication is set but MCP Composer is disabled in settings",
                        }
                elif should_stop_composer:
                    await logger.adebug(
                        f"Auth settings changed from OAuth for project {project.name} ({project_id}), "
                        "stopping MCP Composer"
                    )
                    await mcp_composer_service.stop_project_composer(str(project_id))
                    # Clear any error when user explicitly disables OAuth
                    mcp_composer_service.clear_last_error(str(project_id))

                    # Provide direct connection URLs since we're no longer using composer
                    streamable_http_url = await get_project_streamable_http_url(project_id)
                    legacy_sse_url = await get_project_sse_url(project_id)
                    if not streamable_http_url:
                        raise HTTPException(status_code=500, detail="Failed to get direct Streamable HTTP URL")

                    response["result"] = {
                        "project_id": str(project_id),
                        "streamable_http_url": streamable_http_url,
                        "legacy_sse_url": legacy_sse_url,
                        "sse_url": legacy_sse_url,
                        "uses_composer": False,
                    }

            # Sync MCP server config for apikey/none auth; OAuth is handled by MCP Composer above.
            if auth_settings_updated and new_auth_type in {"apikey", "none"}:
                from langflow.api.v1.projects_mcp_helpers import reconcile_mcp_server_for_auth_update

                try:
                    await reconcile_mcp_server_for_auth_update(
                        project,
                        new_auth_type,
                        current_user,

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Verify host/port settings and that the server is reachable, then retry.

When it happens

Trigger: Occurs when the server fails to construct the direct Streamable HTTP URL for the MCP Composer.

Common situations: See trigger scenarios.


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