{"record":{"id":"0c8c55443f70459c","repo":"XTLS/Xray-core","slug":"failed-to-load-outbound-detour-config-for-protocol","errorCode":null,"errorMessage":"failed to load outbound detour config for protocol ","messagePattern":"failed to load outbound detour config for protocol ","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"infra/conf/xray.go","lineNumber":359,"sourceCode":"\t\t}\n\t\tsenderSettings.ProxySettings = ps\n\t}\n\n\tif c.MuxSettings != nil {\n\t\tms, err := c.MuxSettings.Build()\n\t\tif err != nil {\n\t\t\treturn nil, errors.New(\"failed to build Mux config\").Base(err)\n\t\t}\n\t\tsenderSettings.MultiplexSettings = ms\n\t}\n\n\tsettings := []byte(\"{}\")\n\tif c.Settings != nil {\n\t\tsettings = ([]byte)(*c.Settings)\n\t}\n\trawConfig, err := outboundConfigLoader.LoadWithID(settings, c.Protocol)\n\tif err != nil {\n\t\treturn nil, errors.New(\"failed to load outbound detour config for protocol \", c.Protocol).Base(err)\n\t}\n\tif err := validateOutboundTransportSecurity(rawConfig, senderSettings); err != nil {\n\t\treturn nil, err\n\t}\n\tts, err := rawConfig.(Buildable).Build()\n\tif err != nil {\n\t\treturn nil, errors.New(\"failed to build outbound handler for protocol \", c.Protocol).Base(err)\n\t}\n\n\treturn &core.OutboundHandlerConfig{\n\t\tSenderSettings: serial.ToTypedMessage(senderSettings),\n\t\tTag:            c.Tag,\n\t\tProxySettings:  serial.ToTypedMessage(ts),\n\t}, nil\n}\n\ntype StatsConfig struct{}\n","sourceCodeStart":341,"sourceCodeEnd":377,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/infra/conf/xray.go#L341-L377","documentation":"Error \"failed to load outbound detour config for protocol \" thrown in XTLS/Xray-core.","triggerScenarios":"Thrown at infra/conf/xray.go:359 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d214f8b094f75322fa3990f8aadad1c912f24f5","analyzedAt":"2026-08-15T14:26:24.325Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}