{"record":{"id":"1a224392017de6d6","repo":"sipeed/picoclaw","slug":"onebot-ws-url-not-configured","errorCode":null,"errorMessage":"OneBot ws_url not configured","messagePattern":"OneBot ws_url not configured","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/onebot/onebot.go","lineNumber":155,"sourceCode":"// ReactToMessage implements channels.ReactionCapable.\n// It adds an emoji reaction (ID 289) to group messages and returns an undo function.\n// Private messages return a no-op since reactions are only meaningful in groups.\nfunc (c *OneBotChannel) ReactToMessage(ctx context.Context, chatID, messageID string) (func(), error) {\n\t// Only react in group chats\n\tif !strings.HasPrefix(chatID, \"group:\") {\n\t\treturn func() {}, nil\n\t}\n\n\tc.setMsgEmojiLike(messageID, 289, true)\n\n\treturn func() {\n\t\tc.setMsgEmojiLike(messageID, 289, false)\n\t}, nil\n}\n\nfunc (c *OneBotChannel) Start(ctx context.Context) error {\n\tif c.config.WSUrl == \"\" {\n\t\treturn fmt.Errorf(\"OneBot ws_url not configured\")\n\t}\n\n\tlogger.InfoCF(\"onebot\", \"Starting OneBot channel\", map[string]any{\n\t\t\"ws_url\": c.config.WSUrl,\n\t})\n\n\tc.ctx, c.cancel = context.WithCancel(ctx)\n\n\tif err := c.connect(); err != nil {\n\t\tlogger.WarnCF(\"onebot\", \"Initial connection failed, will retry in background\", map[string]any{\n\t\t\t\"error\": err.Error(),\n\t\t})\n\t} else {\n\t\tgo c.listen()\n\t\tc.fetchSelfID()\n\t}\n\n\tif c.config.ReconnectInterval > 0 {","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/onebot/onebot.go#L137-L173","documentation":"Error \"OneBot ws_url not configured\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/onebot/onebot.go:155 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}