{"record":{"id":"41009013be0a8a7c","repo":"jeessy2/ddns-go","slug":"s-410090","errorCode":null,"errorMessage":"域名 %s 未配置可更新的源站记录","messagePattern":"域名 (.+?) 未配置可更新的源站记录","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"dns/edgeone_origin.go","lineNumber":179,"sourceCode":"\t\t}\n\t\trecords = append(records, EdgeOneOriginRecord{\n\t\t\tRecord: eo.Domains.Ipv4Addr,\n\t\t\tType:   edgeoneOriginRecordType,\n\t\t\tWeight: weight,\n\t\t})\n\t}\n\tif eo.hasDomain(eo.Domains.Ipv6Domains, domainName) {\n\t\tif eo.Domains.Ipv6Addr == \"\" {\n\t\t\treturn nil, fmt.Errorf(\"未能获取域名 %s 对应的 IPv6 地址\", domain)\n\t\t}\n\t\trecords = append(records, EdgeOneOriginRecord{\n\t\t\tRecord: eo.Domains.Ipv6Addr,\n\t\t\tType:   edgeoneOriginRecordType,\n\t\t\tWeight: weight,\n\t\t})\n\t}\n\tif len(records) == 0 {\n\t\treturn nil, fmt.Errorf(\"域名 %s 未配置可更新的源站记录\", domain)\n\t}\n\n\treturn records, nil\n}\n\nfunc (eo *EdgeOne) hasDomain(domains []*config.Domain, fullDomain string) bool {\n\tfor _, domain := range domains {\n\t\tif domain != nil && domain.String() == fullDomain {\n\t\t\treturn true\n\t\t}\n\t}\n\treturn false\n}\n\nfunc (eo *EdgeOne) getOriginWeight(domain *config.Domain) int {\n\tweight := 100\n\tif domain == nil {\n\t\treturn weight","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/jeessy2/ddns-go/blob/5874c2e6667c69357ab95079421131104bd3fcae/dns/edgeone_origin.go#L161-L197","documentation":"A generic empty-result guard at the end of getDesiredOriginRecords: after checking both Ipv4Domains and Ipv6Domains membership, no origin record was appended, meaning the domain appears in neither list. The offending input is the domain tuple's primary domain name, which yields zero desired origin records for addUpdateOriginGroups.","triggerScenarios":"Thrown at dns/edgeone_origin.go:179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the domain to either Ipv4Domains or Ipv6Domains in the EdgeOne domain configuration","Fix a typo or mismatch between the configured domain name and the one being evaluated","If the domain should not have an EdgeOne origin group, exclude it from the addUpdateOriginGroups workflow"],"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"}