{"record":{"id":"c25065b4039f9884","repo":"XTLS/Xray-core","slug":"not-an-outbound-handler","errorCode":null,"errorMessage":"not an outbound handler","messagePattern":"not an outbound handler","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/proxyman/outbound/handler.go","lineNumber":120,"sourceCode":"\n\tproxyConfig, err := config.ProxySettings.GetInstance()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\th.proxyConfig = proxyConfig\n\n\tctx = session.ContextWithFullHandler(ctx, h)\n\n\tnewCtx := session.ContextWithStreamSettings(ctx, h.streamSettings)\n\n\trawProxyHandler, err := common.CreateObject(newCtx, proxyConfig)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tproxyHandler, ok := rawProxyHandler.(proxy.Outbound)\n\tif !ok {\n\t\treturn nil, errors.New(\"not an outbound handler\")\n\t}\n\n\tif h.senderSettings != nil && h.senderSettings.MultiplexSettings != nil {\n\t\tif config := h.senderSettings.MultiplexSettings; config.Enabled {\n\t\t\tif config.Concurrency < 0 {\n\t\t\t\th.mux = &mux.ClientManager{Enabled: false}\n\t\t\t}\n\t\t\tif config.Concurrency == 0 {\n\t\t\t\tconfig.Concurrency = 8 // same as before\n\t\t\t}\n\t\t\tif config.Concurrency > 0 {\n\t\t\t\th.mux = &mux.ClientManager{\n\t\t\t\t\tEnabled: true,\n\t\t\t\t\tPicker: &mux.IncrementalWorkerPicker{\n\t\t\t\t\t\tFactory: &mux.DialingWorkerFactory{\n\t\t\t\t\t\t\tProxy:  proxyHandler,\n\t\t\t\t\t\t\tDialer: h,\n\t\t\t\t\t\t\tStrategy: mux.ClientStrategy{","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/app/proxyman/outbound/handler.go#L102-L138","documentation":"Error \"not an outbound handler\" thrown in XTLS/Xray-core.","triggerScenarios":"Thrown at app/proxyman/outbound/handler.go:120 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-15T22:17:37.221Z"}