ruvnet/ruflo · error

Federation transport close error: ${err instanceof Error ? e

Error message

Federation transport close error: ${err instanceof Error ? err.message : err}

What it means

Log warning in shutdown: closing the federation transport threw; the error is logged and shutdown continues releasing remaining resources rather than aborting.

Source

Thrown at v3/@claude-flow/plugin-agent-federation/src/plugin.ts:556

    if (this.agentCardServer) {
      try {
        await this.agentCardServer.close();
      } catch (err) {
        this.context?.logger.warn(
          `A2A agent card server close error: ${err instanceof Error ? err.message : err}`,
        );
      }
      this.agentCardServer = null;
    }
    if (this.coordinator) {
      await this.coordinator.shutdown();
      this.coordinator = null;
    }
    if (this.transport) {
      try {
        await this.transport.close?.();
      } catch (err) {
        this.context?.logger.warn(
          `Federation transport close error: ${err instanceof Error ? err.message : err}`,
        );
      }
      this.transport = null;
    }
    this.context?.logger.info('Agent Federation plugin shut down');
    this.context = null;
  }

  registerMCPTools(): MCPToolDefinition[] {
    return createMcpTools(() => this.coordinator, () => this.context);
  }

  registerCLICommands(): CLICommandDefinition[] {
    return createCliCommands(() => this.coordinator, () => this.context);
  }

  registerAgentTypes(): AgentTypeDefinition[] {

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Inspect the transport close error; usually benign during shutdown, but repeated occurrences indicate connections are not being cleaned up.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at v3/@claude-flow/plugin-agent-federation/src/plugin.ts:556 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/725d961ad192f360. Report an issue: GitHub.