{"record":{"id":"1bb2ec9c32703987","repo":"AlistGo/alist","slug":"cannot-get-automatically-please-input-family-id","errorCode":null,"errorMessage":"cannot get automatically,please input family_id","messagePattern":"cannot get automatically,please input family_id","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/189pc/utils.go","lineNumber":1085,"sourceCode":"\n// 获取家庭云所有用户信息\nfunc (y *Cloud189PC) getFamilyInfoList() ([]FamilyInfoResp, error) {\n\tvar resp FamilyInfoListResp\n\t_, err := y.get(API_URL+\"/family/manage/getFamilyList.action\", nil, &resp, true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn resp.FamilyInfoResp, nil\n}\n\n// 抽取家庭云ID\nfunc (y *Cloud189PC) getFamilyID() (string, error) {\n\tinfos, err := y.getFamilyInfoList()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif len(infos) == 0 {\n\t\treturn \"\", fmt.Errorf(\"cannot get automatically,please input family_id\")\n\t}\n\tfor _, info := range infos {\n\t\tif strings.Contains(y.getTokenInfo().LoginName, info.RemarkName) {\n\t\t\treturn fmt.Sprint(info.FamilyID), nil\n\t\t}\n\t}\n\treturn fmt.Sprint(infos[0].FamilyID), nil\n}\n\n// 保存家庭云中的文件到个人云\nfunc (y *Cloud189PC) SaveFamilyFileToPersonCloud(ctx context.Context, familyId string, srcObj, dstDir model.Obj, overwrite bool) error {\n\t// _, err := y.post(API_URL+\"/family/file/saveFileToMember.action\", func(req *resty.Request) {\n\t// \treq.SetQueryParams(map[string]string{\n\t// \t\t\"channelId\":    \"home\",\n\t// \t\t\"familyId\":     familyId,\n\t// \t\t\"destParentId\": destParentId,\n\t// \t\t\"fileIdList\":   familyFileId,\n\t// \t})","sourceCodeStart":1067,"sourceCodeEnd":1103,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/189pc/utils.go#L1067-L1103","documentation":"Error \"cannot get automatically,please input family_id\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/189pc/utils.go:1085 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}