{"record":{"id":"bb966a85860f11ec","repo":"sipeed/picoclaw","slug":"no-media-store-available-w-bb966a","errorCode":null,"errorMessage":"no media store available: %w","messagePattern":"no media store available: %w","errorType":"console","errorClass":"channels.ErrSendFailed","httpStatus":null,"severity":"error","filePath":"pkg/channels/onebot/onebot.go","lineNumber":475,"sourceCode":"\t}\n\n\tselect {\n\tcase <-ctx.Done():\n\t\treturn nil, ctx.Err()\n\tdefault:\n\t}\n\n\tc.mu.Lock()\n\tconn := c.conn\n\tc.mu.Unlock()\n\n\tif conn == nil {\n\t\treturn nil, fmt.Errorf(\"OneBot WebSocket not connected\")\n\t}\n\n\tstore := c.GetMediaStore()\n\tif store == nil {\n\t\treturn nil, fmt.Errorf(\"no media store available: %w\", channels.ErrSendFailed)\n\t}\n\n\t// Build media segments\n\tvar segments []oneBotMessageSegment\n\tfor _, part := range msg.Parts {\n\t\tlocalPath, err := store.Resolve(part.Ref)\n\t\tif err != nil {\n\t\t\tlogger.ErrorCF(\"onebot\", \"Failed to resolve media ref\", map[string]any{\n\t\t\t\t\"ref\":   part.Ref,\n\t\t\t\t\"error\": err.Error(),\n\t\t\t})\n\t\t\tcontinue\n\t\t}\n\n\t\tvar segType string\n\t\tswitch part.Type {\n\t\tcase \"image\":\n\t\t\tsegType = \"image\"","sourceCodeStart":457,"sourceCodeEnd":493,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/onebot/onebot.go#L457-L493","documentation":"Error \"no media store available: %w\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/onebot/onebot.go:475 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"}