projectdiscovery/nuclei · error
"splunk responded with an error: " + string(b)
Error message
"splunk responded with an error: " + string(b)
What it means
Error ""splunk responded with an error: " + string(b)" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/reporting/exporters/splunk/splunkhec.go:130
d := data{Event: event}
b, err := json.Marshal(&d)
if err != nil {
return err
}
req.Body = io.NopCloser(bytes.NewReader(b))
res, err := exporter.splunk.Do(req)
if err != nil {
return err
}
b, err = io.ReadAll(res.Body)
if err != nil {
return errors.New(err.Error() + "error thrown by splunk " + string(b))
}
if res.StatusCode >= http.StatusMultipleChoices {
return errors.New("splunk responded with an error: " + string(b))
}
return nil
}
// Close closes the exporter after operation
func (exporter *Exporter) Close() error {
return nil
}
View on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/reporting/exporters/splunk/splunkhec.go:130 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/b55e7fb0813f8c03.
Report an issue: GitHub.