{"record":{"id":"0e871474ea66eeb9","repo":"XTLS/Xray-core","slug":"failed-to-process-response-0e8714","errorCode":null,"errorMessage":"failed to process response","messagePattern":"failed to process response","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"proxy/proxy.go","lineNumber":797,"sourceCode":"\t\t\t}\n\t\t\ttimer.Update()\n\t\t\tif werr := writer.WriteMultiBuffer(buffer); werr != nil {\n\t\t\t\treturn werr\n\t\t\t}\n\t\t}\n\t\tif err != nil {\n\t\t\tif errors.Cause(err) == io.EOF {\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\treturn err\n\t\t}\n\t}\n}\n\nfunc readV(ctx context.Context, reader buf.Reader, writer buf.Writer, timer signal.ActivityUpdater, readCounter stats.Counter) error {\n\terrors.LogDebug(ctx, \"CopyRawConn (maybe) readv\")\n\tif err := buf.Copy(reader, writer, buf.UpdateActivity(timer), buf.AddToStatCounter(readCounter)); err != nil {\n\t\treturn errors.New(\"failed to process response\").Base(err)\n\t}\n\treturn nil\n}\n\nfunc IsRAWTransportWithoutSecurity(conn stat.Connection) bool {\n\tiConn := stat.TryUnwrapStatsConn(conn)\n\tiConn = finalmask.UnwrapTcpMask(iConn)\n\t_, ok1 := iConn.(*proxyproto.Conn)\n\t_, ok2 := iConn.(*net.TCPConn)\n\t_, ok3 := iConn.(*internet.UnixConnWrapper)\n\treturn ok1 || ok2 || ok3\n}\n","sourceCodeStart":779,"sourceCodeEnd":810,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/proxy/proxy.go#L779-L810","documentation":"Error \"failed to process response\" thrown in XTLS/Xray-core.","triggerScenarios":"Thrown at proxy/proxy.go:797 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"}