{"record":{"id":"c589c70d9011ce4a","repo":"projectdiscovery/nuclei","slug":"authentication-failed-v","errorCode":null,"errorMessage":"authentication failed: %v","messagePattern":"authentication failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/js/libs/rsync/rsync.go","lineNumber":200,"sourceCode":"\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.SocketClient(nil, address, module, \".\",\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\t// Try to list files to test authentication\n\tlist, err := sr.List()\n\tif err != nil {\n\t\treturn RsyncListResponse{}, fmt.Errorf(\"authentication failed: %v\", err)\n\t}\n\n\tresult := RsyncListResponse{\n\t\tFiles:  make([]string, len(list)),\n\t\tOutput: logBuffer.String(),\n\t}\n\n\tfor i, item := range list {\n\t\tresult.Files[i] = string(item.Path)\n\t}\n\n\treturn result, nil\n}\n","sourceCodeStart":182,"sourceCodeEnd":214,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/js/libs/rsync/rsync.go#L182-L214","documentation":"Error \"authentication failed: %v\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/js/libs/rsync/rsync.go:200 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"}