projectdiscovery/nuclei · error

connect failed: %v

Error message

connect failed: %v

What it means

Error "connect failed: %v" thrown in projectdiscovery/nuclei.

Source

Thrown at pkg/js/libs/rsync/rsync.go:154

	// Create a bytes buffer for logging
	var logBuffer bytes.Buffer

	// Create a custom slog handler that writes to the buffer
	logHandler := slog.NewTextHandler(&logBuffer, &slog.HandlerOptions{
		Level: slog.LevelDebug,
	})

	// Create a logger that writes to our buffer
	logger := slog.New(logHandler)

	sr, err := rsynclib.ListModules(address,
		rsynclib.WithClientAuth(username, password),
		rsynclib.WithLogger(logger),
		rsynclib.WithFastDialer(fastDialer.Fastdialer),
	)
	if err != nil {
		return RsyncListResponse{}, fmt.Errorf("connect failed: %v", err)
	}

	result := RsyncListResponse{
		Modules: make([]string, len(sr)),
		Output:  logBuffer.String(),
	}

	for i, item := range sr {
		result.Modules[i] = string(item.Name)
	}

	return result, nil
}

func listFilesInModule(executionId string, host string, port int, username string, password string, module string) (RsyncListResponse, error) {
	fastDialer := protocolstate.GetDialersWithId(executionId)
	if fastDialer == nil {
		return RsyncListResponse{}, fmt.Errorf("dialers not initialized for %s", executionId)

View on GitHub (pinned to 265b3a3dec)

When it happens

Trigger: Thrown at pkg/js/libs/rsync/rsync.go:154 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of projectdiscovery/nuclei@265b3a3dec (2026-08-15). Data as JSON: /api/errors/07e7d79d1129b54e. Report an issue: GitHub.