{"record":{"id":"7d0eafe6643496e5","repo":"jeessy2/ddns-go","slug":"groupid-xxx-origingroupname-xxx","errorCode":null,"errorMessage":"请在域名后追加 ?GroupId=xxx 或 ?OriginGroupName=xxx","messagePattern":"请在域名后追加 \\?GroupId=xxx 或 \\?OriginGroupName=xxx","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"dns/edgeone_origin.go","lineNumber":222,"sourceCode":"\t}\n\treturn weight\n}\n\nfunc (eo *EdgeOne) getOriginGroup(domain *config.Domain, zoneId string) (EdgeOneOriginGroup, error) {\n\tparams := domain.GetCustomParams()\n\trecord := struct {\n\t\tZoneId  string   `json:\"ZoneId\"`\n\t\tFilters []Filter `json:\"Filters\"`\n\t}{\n\t\tZoneId: zoneId,\n\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","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/jeessy2/ddns-go/blob/5874c2e6667c69357ab95079421131104bd3fcae/dns/edgeone_origin.go#L204-L240","documentation":"A usage guard in getOriginGroup: neither the GroupId nor the OriginGroupName custom parameter was supplied on the domain, so there is no filter to locate a specific EdgeOne origin group. The faulting input is the domain's custom params string, which must carry one of the two supported selectors.","triggerScenarios":"Thrown at dns/edgeone_origin.go:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Append ?GroupId=xxx to the domain so the origin-group-id filter is used","Append ?OriginGroupName=xxx to the domain so the origin-group-name filter is used","Verify the custom-params string is being parsed correctly (correct delimiter, no typos) and that the key matches exactly GroupId or OriginGroupName"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}