{"record":{"id":"83d1b2205724d8b7","repo":"projectdiscovery/nuclei","slug":"remotecontent-error-err","errorCode":null,"errorMessage":"${remoteContent.Error}: ${err}","messagePattern":"\\$\\{remoteContent\\.Error\\}: \\$\\{err\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/catalog/loader/remote_loader.go","lineNumber":53,"sourceCode":"\t\terr   error\n\t\tmuErr sync.Mutex\n\t)\n\tremoteTemplateList := sliceutil.NewSyncSlice[string]()\n\tremoteWorkFlowList := sliceutil.NewSyncSlice[string]()\n\n\tawg, errAwg := syncutil.New(syncutil.WithSize(50))\n\tif errAwg != nil {\n\t\treturn nil, nil, errAwg\n\t}\n\n\tloadItem := func(URL string, contentType ContentType) {\n\t\tdefer awg.Done()\n\n\t\tremoteContent := getRemoteContent(URL, remoteTemplateDomainList, contentType)\n\t\tif remoteContent.Error != nil {\n\t\t\tmuErr.Lock()\n\t\t\tif err != nil {\n\t\t\t\terr = errors.New(remoteContent.Error.Error() + \": \" + err.Error())\n\t\t\t} else {\n\t\t\t\terr = remoteContent.Error\n\t\t\t}\n\t\t\tmuErr.Unlock()\n\t\t} else {\n\t\t\tswitch remoteContent.Type {\n\t\t\tcase Template:\n\t\t\t\tremoteTemplateList.Append(remoteContent.Content...)\n\t\t\tcase Workflow:\n\t\t\t\tremoteWorkFlowList.Append(remoteContent.Content...)\n\t\t\t}\n\t\t}\n\t}\n\n\tfor _, templateURL := range templateURLs {\n\t\tawg.Add()\n\t\tgo loadItem(templateURL, Template)\n\t}","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/catalog/loader/remote_loader.go#L35-L71","documentation":"Error \"${remoteContent.Error}: ${err}\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/catalog/loader/remote_loader.go:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}