{"record":{"id":"a8588a87a49358b6","repo":"AlexxIT/go2rtc","slug":"no-cameras-found","errorCode":null,"errorMessage":"no cameras found","messagePattern":"no cameras found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"internal/tuya/tuya.go","lineNumber":103,"sourceCode":"\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tsharedHomes, _ := tuyaAPI.GetSharedHomeList()\n\tif sharedHomes != nil && len(sharedHomes.Result.SecurityWebCShareInfoList) > 0 {\n\t\tfor _, sharedHome := range sharedHomes.Result.SecurityWebCShareInfoList {\n\t\t\tfor _, device := range sharedHome.DeviceInfoList {\n\t\t\t\tif (device.Category == \"sp\" || device.Category == \"dghsxj\") && !containsDevice(devices, device.DeviceId) {\n\t\t\t\t\tdevices = append(devices, device)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(devices) == 0 {\n\t\thttp.Error(w, \"no cameras found\", http.StatusNotFound)\n\t\treturn\n\t}\n\n\tvar items []*api.Source\n\tfor _, device := range devices {\n\t\tcleanQuery := url.Values{}\n\t\tcleanQuery.Set(\"device_id\", device.DeviceId)\n\t\tcleanQuery.Set(\"email\", email)\n\t\tcleanQuery.Set(\"password\", password)\n\t\turl := fmt.Sprintf(\"tuya://%s?%s\", tuyaRegion.Host, cleanQuery.Encode())\n\n\t\titems = append(items, &api.Source{\n\t\t\tName: device.DeviceName,\n\t\t\tURL:  url,\n\t\t})\n\t}\n\n\tapi.ResponseSources(w, items)","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/AlexxIT/go2rtc/blob/c245815e75e2a5fd60b4290f12bfc04e55a984d3/internal/tuya/tuya.go#L85-L121","documentation":"After scanning all homes and shared homes, no devices of camera categories (sp, dghsxj) were found for the account, so apiTuya has nothing to list. Responds 404; means the account has no compatible cameras.","triggerScenarios":"Thrown at internal/tuya/tuya.go:103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the account actually has cameras registered","Check that the account has access to the home containing the cameras"],"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"}