sipeed/picoclaw · error
OneBot ws_url not configured
Error message
OneBot ws_url not configured
What it means
Configuration guard in OneBotChannel.Start: fires when c.config.WSUrl is not set. Without a WebSocket URL there is no OneBot implementation to connect to, so Start cannot proceed and returns this error.
Solutions
- Set onebot.ws_url in the channel config (e.g. ws://127.0.0.1:6700)
- Validate config before starting the channel
- Fix the config; retrying without an URL cannot succeed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at pkg/channels/onebot/onebot.go:155 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/1a224392017de6d6.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/channels/onebot/onebot.go:155
// ReactToMessage implements channels.ReactionCapable.
// It adds an emoji reaction (ID 289) to group messages and returns an undo function.
// Private messages return a no-op since reactions are only meaningful in groups.
func (c *OneBotChannel) ReactToMessage(ctx context.Context, chatID, messageID string) (func(), error) {
// Only react in group chats
if !strings.HasPrefix(chatID, "group:") {
return func() {}, nil
}
c.setMsgEmojiLike(messageID, 289, true)
return func() {
c.setMsgEmojiLike(messageID, 289, false)
}, nil
}
func (c *OneBotChannel) Start(ctx context.Context) error {
if c.config.WSUrl == "" {
return fmt.Errorf("OneBot ws_url not configured")
}
logger.InfoCF("onebot", "Starting OneBot channel", map[string]any{
"ws_url": c.config.WSUrl,
})
c.ctx, c.cancel = context.WithCancel(ctx)
if err := c.connect(); err != nil {
logger.WarnCF("onebot", "Initial connection failed, will retry in background", map[string]any{
"error": err.Error(),
})
} else {
go c.listen()
c.fetchSelfID()
}
if c.config.ReconnectInterval > 0 {View on GitHub (pinned to 49183d7e8d)