{"record":{"id":"b9a51b33cbd7aaa7","repo":"sipeed/picoclaw","slug":"maixcam-send-w","errorCode":null,"errorMessage":"maixcam send: %w","messagePattern":"maixcam send: %w","errorType":"exception","errorClass":"ErrTemporary","httpStatus":null,"severity":"error","filePath":"pkg/channels/maixcam/maixcam.go","lineNumber":285,"sourceCode":"\t\t\"timestamp\": float64(0),\n\t\t\"message\":   msg.Content,\n\t\t\"chat_id\":   msg.ChatID,\n\t}\n\n\tdata, err := json.Marshal(response)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to marshal response: %w\", err)\n\t}\n\n\tvar sendErr error\n\tfor conn := range c.clients {\n\t\t_ = conn.SetWriteDeadline(time.Now().Add(10 * time.Second))\n\t\tif _, err := conn.Write(data); err != nil {\n\t\t\tlogger.ErrorCF(\"maixcam\", \"Failed to send to client\", map[string]any{\n\t\t\t\t\"client\": conn.RemoteAddr().String(),\n\t\t\t\t\"error\":  err.Error(),\n\t\t\t})\n\t\t\tsendErr = fmt.Errorf(\"maixcam send: %w\", channels.ErrTemporary)\n\t\t}\n\t\t_ = conn.SetWriteDeadline(time.Time{})\n\t}\n\n\treturn nil, sendErr\n}\n","sourceCodeStart":267,"sourceCodeEnd":292,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/maixcam/maixcam.go#L267-L292","documentation":"Error \"maixcam send: %w\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/maixcam/maixcam.go:285 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"}