{"record":{"id":"07e7d79d1129b54e","repo":"projectdiscovery/nuclei","slug":"connect-failed-v","errorCode":null,"errorMessage":"connect failed: %v","messagePattern":"connect failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/js/libs/rsync/rsync.go","lineNumber":154,"sourceCode":"\n\t// Create a bytes buffer for logging\n\tvar logBuffer bytes.Buffer\n\n\t// Create a custom slog handler that writes to the buffer\n\tlogHandler := slog.NewTextHandler(&logBuffer, &slog.HandlerOptions{\n\t\tLevel: slog.LevelDebug,\n\t})\n\n\t// Create a logger that writes to our buffer\n\tlogger := slog.New(logHandler)\n\n\tsr, err := rsynclib.ListModules(address,\n\t\trsynclib.WithClientAuth(username, password),\n\t\trsynclib.WithLogger(logger),\n\t\trsynclib.WithFastDialer(fastDialer.Fastdialer),\n\t)\n\tif err != nil {\n\t\treturn RsyncListResponse{}, fmt.Errorf(\"connect failed: %v\", err)\n\t}\n\n\tresult := RsyncListResponse{\n\t\tModules: make([]string, len(sr)),\n\t\tOutput:  logBuffer.String(),\n\t}\n\n\tfor i, item := range sr {\n\t\tresult.Modules[i] = string(item.Name)\n\t}\n\n\treturn result, nil\n}\n\nfunc listFilesInModule(executionId string, host string, port int, username string, password string, module string) (RsyncListResponse, error) {\n\tfastDialer := protocolstate.GetDialersWithId(executionId)\n\tif fastDialer == nil {\n\t\treturn RsyncListResponse{}, fmt.Errorf(\"dialers not initialized for %s\", executionId)","sourceCodeStart":136,"sourceCodeEnd":172,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/js/libs/rsync/rsync.go#L136-L172","documentation":"Error \"connect failed: %v\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/js/libs/rsync/rsync.go:154 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":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}