{"record":{"id":"78bb310a82d6376a","repo":"AlexxIT/go2rtc","slug":"not-supported","errorCode":null,"errorMessage":"not supported","messagePattern":"not supported","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/tuya/smart_api.go","lineNumber":325,"sourceCode":"\n\thubConfig, err := c.loadHubConfig()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to load hub config: %w\", err)\n\t}\n\n\tif err := c.mqtt.Start(hubConfig, webrtcConfig, c.skill.WebRTC); err != nil {\n\t\treturn fmt.Errorf(\"failed to start MQTT: %w\", err)\n\t}\n\n\tif c.skill.LowPower > 0 {\n\t\t_ = c.mqtt.WakeUp(c.localKey)\n\t}\n\n\treturn nil\n}\n\nfunc (c *TuyaSmartApiClient) GetStreamUrl(streamType string) (streamUrl string, err error) {\n\treturn \"\", errors.New(\"not supported\")\n}\n\nfunc (c *TuyaSmartApiClient) GetAppInfo() (*AppInfoResponse, error) {\n\turl := fmt.Sprintf(\"https://%s/api/customized/web/app/info\", c.baseUrl)\n\n\tbody, err := c.request(\"POST\", url, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar appInfoResponse AppInfoResponse\n\tif err := json.Unmarshal(body, &appInfoResponse); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif !appInfoResponse.Success {\n\t\treturn nil, errors.New(appInfoResponse.Msg)\n\t}","sourceCodeStart":307,"sourceCodeEnd":343,"githubUrl":"https://github.com/AlexxIT/go2rtc/blob/c245815e75e2a5fd60b4290f12bfc04e55a984d3/pkg/tuya/smart_api.go#L307-L343","documentation":"TuyaSmartApiClient.GetStreamUrl's explicit stub: the Smart API (local MQTT) path has no cloud-style stream URL allocation, so it always returns this 'not supported' error. Callers that need a stream URL must use the Cloud API client instead — this is an interface-satisfaction placeholder, not a runtime failure.","triggerScenarios":"Thrown at pkg/tuya/smart_api.go:325 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use TuyaCloudApiClient (client_id/client_secret) when a stream URL is required","Branch on API type before calling GetStreamUrl","Extend the smart API client if a local equivalent ever becomes available"],"exampleFix":null,"handlingStrategy":"fallback","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"}