redis/go-redis · error
redis: invalid timeseries aggregator: %d
Error message
redis: invalid timeseries aggregator: %d
What it means
Error "redis: invalid timeseries aggregator: %d" thrown in redis/go-redis.
Source
Thrown at timeseries_commands.go:208
parts := make([]string, len(aggregators))
for i, agg := range aggregators {
if agg == Invalid {
return "", 0, fmt.Errorf("redis: invalid timeseries aggregator at index %d: Invalid (%d)", i, agg)
}
aggregationArg, err := formatAggregatorArg(agg)
if err != nil {
return "", 0, fmt.Errorf("redis: invalid timeseries aggregator at index %d: %d", i, agg)
}
parts[i] = aggregationArg
}
return strings.Join(parts, ","), len(parts), nil
}
func formatAggregatorArg(aggregator Aggregator) (string, error) {
aggregationArg := aggregator.String()
if aggregationArg == "" {
return "", fmt.Errorf("redis: invalid timeseries aggregator: %d", aggregator)
}
return aggregationArg, nil
}
type TSRangeOptions struct {
Latest bool
FilterByTS []int
FilterByValue []int
Count int
Align interface{}
// Deprecated: use Aggregators instead.
Aggregator Aggregator
Aggregators []Aggregator
BucketDuration int
BucketTimestamp interface{}
Empty bool
}
View on GitHub (pinned to c5cad058c7)
When it happens
Trigger: Thrown at timeseries_commands.go:208 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of redis/go-redis@c5cad058c7 (2026-09-01).
Data as JSON: /api/errors/cb3ab0847f74a6dc.
Report an issue: GitHub.