{"record":{"id":"55b0086385c3474b","repo":"sipeed/picoclaw","slug":"channel-q-does-not-support-media-sending","errorCode":null,"errorMessage":"channel %q does not support media sending","messagePattern":"channel %q does not support media sending","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/manager.go","lineNumber":1746,"sourceCode":"\t\t\t_, _ = m.sendMediaWithRetry(ctx, name, w, msg)\n\t\tcase <-ctx.Done():\n\t\t\treturn\n\t\t}\n\t}\n}\n\n// sendMediaWithRetry sends a media message through the channel with rate limiting and\n// retry logic. It returns the message IDs and nil on success, or nil and the last error\n// after retries, including when the channel does not support MediaSender.\nfunc (m *Manager) sendMediaWithRetry(\n\tctx context.Context,\n\tname string,\n\tw *channelWorker,\n\tmsg bus.OutboundMediaMessage,\n) ([]string, error) {\n\tms, ok := w.ch.(MediaSender)\n\tif !ok {\n\t\terr := fmt.Errorf(\"channel %q does not support media sending\", name)\n\t\tlogger.WarnCF(\"channels\", \"Channel does not support MediaSender\", map[string]any{\n\t\t\t\"channel\": name,\n\t\t\t\"error\":   err.Error(),\n\t\t})\n\t\treturn nil, err\n\t}\n\n\t// Rate limit: wait for token\n\tif err := w.limiter.Wait(ctx); err != nil {\n\t\tm.publishChannelEvent(\n\t\t\truntimeevents.KindChannelRateLimited,\n\t\t\tname,\n\t\t\tscopeFromOutboundContext(msg.Context),\n\t\t\truntimeevents.SeverityWarn,\n\t\t\tChannelOutboundPayload{\n\t\t\t\tMedia: true,\n\t\t\t\tError: err.Error(),\n\t\t\t},","sourceCodeStart":1728,"sourceCodeEnd":1764,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/manager.go#L1728-L1764","documentation":"Error \"channel %q does not support media sending\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/manager.go:1746 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"}