{"record":{"id":"d773594772d7c9ee","repo":"jeessy2/ddns-go","slug":"edgeone-s-d77359","errorCode":null,"errorMessage":"在 EdgeOne 中未找到源站组: %s","messagePattern":"在 EdgeOne 中未找到源站组: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"dns/edgeone_origin.go","lineNumber":233,"sourceCode":"\t}\n\n\tif params.Has(\"GroupId\") {\n\t\trecord.Filters = []Filter{{Name: \"origin-group-id\", Values: []string{params.Get(\"GroupId\")}}}\n\t} else if params.Has(\"OriginGroupName\") {\n\t\trecord.Filters = []Filter{{Name: \"origin-group-name\", Values: []string{params.Get(\"OriginGroupName\")}}}\n\t} else {\n\t\treturn EdgeOneOriginGroup{}, fmt.Errorf(\"请在域名后追加 ?GroupId=xxx 或 ?OriginGroupName=xxx\")\n\t}\n\n\tvar result EdgeOneOriginGroupResponse\n\tif err := eo.request(\"DescribeOriginGroup\", record, &result); err != nil {\n\t\treturn EdgeOneOriginGroup{}, err\n\t}\n\tif result.Response.Error.Code != \"\" {\n\t\treturn EdgeOneOriginGroup{}, fmt.Errorf(\"%s\", result.Response.Error.Message)\n\t}\n\tif result.Response.TotalCount <= 0 || len(result.Response.OriginGroups) == 0 {\n\t\treturn EdgeOneOriginGroup{}, fmt.Errorf(\"在 EdgeOne 中未找到源站组: %s\", domain)\n\t}\n\n\tif params.Has(\"GroupId\") {\n\t\tgroupId := params.Get(\"GroupId\")\n\t\tfor _, group := range result.Response.OriginGroups {\n\t\t\tif group.GroupId == groupId {\n\t\t\t\treturn group, nil\n\t\t\t}\n\t\t}\n\t\treturn EdgeOneOriginGroup{}, fmt.Errorf(\"在 EdgeOne 中未找到源站组 GroupId=%s\", groupId)\n\t}\n\n\tgroupName := params.Get(\"OriginGroupName\")\n\tfor _, group := range result.Response.OriginGroups {\n\t\tif group.Name == groupName {\n\t\t\treturn group, nil\n\t\t}\n\t}","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/jeessy2/ddns-go/blob/5874c2e6667c69357ab95079421131104bd3fcae/dns/edgeone_origin.go#L215-L251","documentation":"After a successful DescribeOriginGroup call with no API error, getOriginGroup checks TotalCount/OriginGroups; if the zone has no origin groups at all matching the query, it fails with 'origin group not found: <domain>'. The library requires the origin group to already exist in EdgeOne; it only updates existing groups (via modifyOriginGroup), never creates them.","triggerScenarios":"addUpdateOriginGroups -> getOriginGroup when the EdgeOne zone returns TotalCount <= 0 or an empty OriginGroups array for the given ZoneId + filter.","commonSituations":"User enabled ddns-go's EdgeOne origin-group mode but never created an origin group in the EdgeOne console; the origin group was deleted; typo'd OriginGroupName filter returns zero rows; wrong account/zone selected.","solutions":["Create an origin group in the Tencent EdgeOne console for the site containing your origin records.","Check the OriginGroupName custom param spelling matches the group name exactly (case-sensitive).","Verify the domain resolves to the correct ZoneId (the zone where the group exists).","If using GroupId, confirm the group ID still exists and wasn't recreated with a new ID."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Pre-check in the EdgeOne console (or via API) that the origin group exists before configuring ddns-go:\n// DescribeOriginGroup with Filters=[{Name:\"origin-group-name\",Values:[\"<name>\"]}] must return TotalCount >= 1","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Create the origin group in EdgeOne before pointing ddns-go at it","Match OriginGroupName exactly, character for character","Re-check after deleting/recreating groups in the console","Pin the GroupId instead of the name for stability"],"tags":["edgeone","origin-group","not-found","configuration"],"backgroundTag":"resource-not-found","analyzedSha":"5874c2e6667c69357ab95079421131104bd3fcae","analyzedAt":"2026-09-03T15:41:16.799Z","contentChangedAt":"2026-09-03T15:41:16.799Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}