{"record":{"id":"827ad50a96c2902f","repo":"AlexxIT/go2rtc","slug":"wyze-camera-not-found-s","errorCode":null,"errorMessage":"wyze: camera not found: %s","messagePattern":"wyze: camera not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/wyze/cloud.go","lineNumber":234,"sourceCode":"\n\treturn c.cameras, nil\n}\n\nfunc (c *Cloud) GetCamera(id string) (*Camera, error) {\n\tif c.cameras == nil {\n\t\tif _, err := c.GetCameraList(); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tid = strings.ToUpper(id)\n\tfor _, cam := range c.cameras {\n\t\tif strings.ToUpper(cam.MAC) == id || strings.EqualFold(cam.Nickname, id) {\n\t\t\treturn cam, nil\n\t\t}\n\t}\n\n\treturn nil, fmt.Errorf(\"wyze: camera not found: %s\", id)\n}\n\nfunc (c *Cloud) GetP2PInfo(mac string) (map[string]any, error) {\n\tpayload := map[string]any{\n\t\t\"access_token\":      c.accessToken,\n\t\t\"phone_id\":          c.phoneID,\n\t\t\"device_mac\":        mac,\n\t\t\"app_name\":          appName,\n\t\t\"app_ver\":           appName + \"___\" + appVersion,\n\t\t\"app_version\":       appVersion,\n\t\t\"phone_system_type\": 1,\n\t\t\"sc\":                \"9f275790cab94a72bd206c8876429f3c\",\n\t\t\"sv\":                \"9d74946e652647e9b6c9d59326aef104\",\n\t\t\"ts\":                time.Now().UnixMilli(),\n\t}\n\n\tjsonData, _ := json.Marshal(payload)\n","sourceCodeStart":216,"sourceCodeEnd":252,"githubUrl":"https://github.com/AlexxIT/go2rtc/blob/c245815e75e2a5fd60b4290f12bfc04e55a984d3/pkg/wyze/cloud.go#L216-L252","documentation":"GetCamera searched the cached camera list (fetching it if empty) for a camera matching the given MAC or nickname case-insensitively and found none. Indicates an unknown/typo'd camera id, or the device is not of product type Camera.","triggerScenarios":"Thrown at pkg/wyze/cloud.go:234 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the camera's MAC or exact nickname as shown in the device list","Re-fetch the device list in case the camera was added later"],"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"}