{"record":{"id":"296790142ecb2064","repo":"kubernetes/kops","slug":"no-urls-were-specified","errorCode":null,"errorMessage":"no urls were specified","messagePattern":"no urls were specified","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/assetstore.go","lineNumber":234,"sourceCode":"\t}\n\tif i == -1 {\n\t\ti = strings.Index(id, \"@azureblob://\")\n\t}\n\tif i != -1 {\n\t\turls := strings.Split(id[i+1:], \",\")\n\t\thash, err := hashing.FromString(id[:i])\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn a.addURLs(ctx, urls, hash)\n\t}\n\t// TODO: local files!\n\treturn fmt.Errorf(\"unknown asset format: %q\", id)\n}\n\nfunc (a *AssetStore) addURLs(ctx context.Context, urls []string, hash *hashing.Hash) error {\n\tif len(urls) == 0 {\n\t\treturn fmt.Errorf(\"no urls were specified\")\n\t}\n\n\tvar err error\n\tif hash == nil {\n\t\tfor _, url := range urls {\n\t\t\thash, err = hashFromHTTPHeader(url)\n\t\t\tif err != nil {\n\t\t\t\tklog.Warningf(\"unable to get hash from %q: %v\", url, err)\n\t\t\t\tcontinue\n\t\t\t} else {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n","sourceCodeStart":216,"sourceCodeEnd":252,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/assetstore.go#L216-L252","documentation":"addURLs was invoked with an empty URL list — the id segment after '@' split on commas produced zero URLs, so there is nothing to register for the asset.","triggerScenarios":"Thrown at upup/pkg/fi/assetstore.go:234 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure at least one URL follows the '@' in the asset id","Check for stray commas or truncation in the asset id string"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}