projectdiscovery/nuclei · error

dataformat is required

Error message

dataformat is required

What it means

Error "dataformat is required" thrown in projectdiscovery/nuclei.

Source

Thrown at pkg/fuzz/dataformat/dataformat.go:92

		if dataformat.IsType(data) {
			decoded, err := dataformat.Decode(data)
			if err != nil {
				return nil, err
			}
			value := &Decoded{
				DataFormat: dataformat.Name(),
				Data:       decoded,
			}
			return value, nil
		}
	}
	return nil, nil
}

// Encode encodes the data into a format
func Encode(data KV, dataformat string) (string, error) {
	if dataformat == "" {
		return "", errors.New("dataformat is required")
	}
	if encoder, ok := dataformats[dataformat]; ok {
		return encoder.Encode(data)
	}
	return "", fmt.Errorf("dataformat %s is not supported", dataformat)
}

View on GitHub (pinned to 265b3a3dec)

When it happens

Trigger: Thrown at pkg/fuzz/dataformat/dataformat.go:92 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/f5e52a802d3f375b. Report an issue: GitHub.