{"record":{"id":"e0c7cf801db5cfdc","repo":"AlexxIT/go2rtc","slug":"tuya-no-receivers","errorCode":null,"errorMessage":"tuya: no receivers","messagePattern":"tuya: no receivers","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/tuya/client.go","lineNumber":416,"sourceCode":"\t\t\t}\n\t\t}\n\n\tdefault:\n\t\tsender.Handler = func(packet *rtp.Packet) {\n\t\t\tc.conn.Send += packet.MarshalSize()\n\t\t\t_ = localTrack.WriteRTP(payloadType, packet)\n\t\t}\n\t}\n\n\tsender.HandleRTP(track)\n\tc.conn.Senders = append(c.conn.Senders, sender)\n\n\treturn nil\n}\n\nfunc (c *Client) Start() error {\n\tif len(c.conn.Receivers) == 0 {\n\t\treturn errors.New(\"tuya: no receivers\")\n\t}\n\n\tvar video, audio *core.Receiver\n\tfor _, receiver := range c.conn.Receivers {\n\t\tif receiver.Codec.IsVideo() {\n\t\t\tvideo = receiver\n\t\t} else if receiver.Codec.IsAudio() {\n\t\t\taudio = receiver\n\t\t}\n\t}\n\n\tif c.videoSSRC != nil {\n\t\tc.setHandler(*c.videoSSRC, func(packet *rtp.Packet) {\n\t\t\tif video != nil {\n\t\t\t\tvideo.WriteRTP(packet)\n\t\t\t}\n\t\t})\n\t}","sourceCodeStart":398,"sourceCodeEnd":434,"githubUrl":"https://github.com/AlexxIT/go2rtc/blob/c245815e75e2a5fd60b4290f12bfc04e55a984d3/pkg/tuya/client.go#L398-L434","documentation":"Tuya Start guard: c.conn.Receivers is empty — no remote tracks have been attached to the WebRTC connection yet, so there is nothing to start streaming. Start was called before the offer/answer exchange produced receivers, or track negotiation failed silently.","triggerScenarios":"Thrown at pkg/tuya/client.go:416 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for the connection to be established and tracks negotiated before Start","Check that the Tuya device actually sends audio/video tracks","Re-dial the client if negotiation stalled"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c245815e75e2a5fd60b4290f12bfc04e55a984d3","analyzedAt":"2026-09-07T11:47:02.965Z","contentChangedAt":"2026-09-07T11:47:02.965Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}