XTLS/Xray-core · error

failed to build outbound config with tag

Error message

failed to build outbound config with tag 

What it means

An entry in the top-level 'outbounds' array failed its per-outbound Build; the message includes the outbound's tag to identify which one. Common causes: invalid protocol settings or stream settings for that outbound.

Solutions

  1. Locate the outbound with the reported tag and fix its config
  2. Check protocol settings and streamSettings
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at infra/conf/xray.go:683 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of XTLS/Xray-core@7d214f8b09 (2026-08-15). Data as JSON: /api/errors/42b3057310cf65c5. Report an issue: GitHub.

Appendix: source

Thrown at infra/conf/xray.go:683

	for _, rawInboundConfig := range inbounds {
		ic, err := rawInboundConfig.Build()
		if err != nil {
			return nil, errors.New("failed to build inbound config with tag ", rawInboundConfig.Tag).Base(err)
		}
		config.Inbound = append(config.Inbound, ic)
	}

	var outbounds []OutboundDetourConfig

	if len(c.OutboundConfigs) > 0 {
		outbounds = append(outbounds, c.OutboundConfigs...)
	}

	for _, rawOutboundConfig := range outbounds {
		oc, err := rawOutboundConfig.Build()
		if err != nil {
			return nil, errors.New("failed to build outbound config with tag ", rawOutboundConfig.Tag).Base(err)
		}
		config.Outbound = append(config.Outbound, oc)
	}

	return config, nil
}

// Convert string to Address.
func ParseSendThough(Addr *string) *Address {
	var addr Address
	addr.Address = net.ParseAddress(strings.Split(*Addr, "/")[0])
	return &addr
}

View on GitHub (pinned to 7d214f8b09)