{"record":{"id":"34d73284eff0f2be","repo":"sipeed/picoclaw","slug":"invalid-s-in-chatid-s","errorCode":null,"errorMessage":"invalid %s in chatID: %s","messagePattern":"invalid (.+?) in chatID: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/onebot/onebot.go","lineNumber":600,"sourceCode":"}\n\nfunc (c *OneBotChannel) buildSendRequest(msg bus.OutboundMessage) (string, any, error) {\n\tchatID := msg.ChatID\n\tsegments := c.buildMessageSegments(chatID, msg.Content)\n\n\tvar action, idKey string\n\tvar rawID string\n\tif rest, ok := strings.CutPrefix(chatID, \"group:\"); ok {\n\t\taction, idKey, rawID = \"send_group_msg\", \"group_id\", rest\n\t} else if rest, ok := strings.CutPrefix(chatID, \"private:\"); ok {\n\t\taction, idKey, rawID = \"send_private_msg\", \"user_id\", rest\n\t} else {\n\t\taction, idKey, rawID = \"send_private_msg\", \"user_id\", chatID\n\t}\n\n\tid, err := strconv.ParseInt(rawID, 10, 64)\n\tif err != nil {\n\t\treturn \"\", nil, fmt.Errorf(\"invalid %s in chatID: %s\", idKey, chatID)\n\t}\n\treturn action, map[string]any{idKey: id, \"message\": segments}, nil\n}\n\nfunc (c *OneBotChannel) listen() {\n\tc.mu.Lock()\n\tconn := c.conn\n\tc.mu.Unlock()\n\n\tif conn == nil {\n\t\tlogger.WarnC(\"onebot\", \"WebSocket connection is nil, listener exiting\")\n\t\treturn\n\t}\n\n\tfor {\n\t\tselect {\n\t\tcase <-c.ctx.Done():\n\t\t\treturn","sourceCodeStart":582,"sourceCodeEnd":618,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/onebot/onebot.go#L582-L618","documentation":"Error \"invalid %s in chatID: %s\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/onebot/onebot.go:600 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"}