sipeed/picoclaw · error
channel streaming.throttle_seconds must be >= 0
Error message
channel %q streaming.throttle_seconds must be >= 0
What it means
Guard in validateChannelStreamingConfig, called from InitChannelList: the channel's streaming.throttle_seconds was configured as a negative number, which is meaningless for a throttle interval. Only Pico, Telegram, and WeCom settings are checked; other channel types pass through.
Solutions
- Set streaming.throttle_seconds to 0 or a positive number for that channel
- Remove the field to use the default
- Fix accidental sign errors or unit confusion
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at pkg/config/config_channel.go:805 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/f81977512575948f.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/config/config_channel.go:805
}
}
}
func validateChannelStreamingConfig(channelName string, target any) error {
var streaming StreamingConfig
switch settings := target.(type) {
case *PicoSettings:
streaming = settings.Streaming
case *TelegramSettings:
streaming = settings.Streaming
case *WeComSettings:
streaming = settings.Streaming
default:
return nil
}
if streaming.ThrottleSeconds < 0 {
return fmt.Errorf("channel %q streaming.throttle_seconds must be >= 0", channelName)
}
if streaming.MinGrowthChars < 0 {
return fmt.Errorf("channel %q streaming.min_growth_chars must be >= 0", channelName)
}
return nil
}
View on GitHub (pinned to 49183d7e8d)