projectdiscovery/nuclei · error
no events found in the events file
Error message
no events found in the events file
What it means
Error "no events found in the events file" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/scan/charts/charts.go:74
return nil, err
}
defer func() {
_ = f.Close()
}()
data := []events.ScanEvent{}
dec := json.NewDecoder(f)
for {
var event events.ScanEvent
if err := dec.Decode(&event); err != nil {
break
}
data = append(data, event)
}
sc.data = data
if len(data) == 0 {
return nil, fmt.Errorf("no events found in the events file")
}
return sc, nil
}
// Start starts the nuclei event charts server
func (sc *ScanEventsCharts) Start(addr string) {
log.Fatal(http.ListenAndServe(addr, sc.routes()))
}
func (sc *ScanEventsCharts) routes() http.Handler {
mux := http.NewServeMux()
mux.HandleFunc("GET /concurrency", sc.ConcurrencyVsTime)
mux.HandleFunc("GET /fuzz", sc.TotalRequestsOverTime)
mux.HandleFunc("GET /slow", sc.TopSlowTemplates)
mux.HandleFunc("GET /rps", sc.RequestsVSInterval)
mux.HandleFunc("GET /{$}", sc.AllCharts)
return muxView on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/scan/charts/charts.go:74 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/ddc558f1f13abff5.
Report an issue: GitHub.