{"record":{"id":"989bf7e229c6492b","repo":"goharbor/harbor","slug":"transfer-factory-for-s-not-found","errorCode":null,"errorMessage":"transfer factory for %s not found","messagePattern":"transfer factory for (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/controller/replication/transfer/transfer.go","lineNumber":84,"sourceCode":"\tif len(name) == 0 {\n\t\treturn errors.New(\"empty name\")\n\t}\n\tif factory == nil {\n\t\treturn errors.New(\"empty resource transfer factory\")\n\t}\n\tif _, exist := registry[name]; exist {\n\t\treturn fmt.Errorf(\"resource transfer factory for %s already exists\", name)\n\t}\n\n\tregistry[name] = factory\n\treturn nil\n}\n\n// GetFactory gets the transfer factory by the specified name\nfunc GetFactory(name string) (Factory, error) {\n\tfactory, exist := registry[name]\n\tif !exist {\n\t\treturn nil, fmt.Errorf(\"transfer factory for %s not found\", name)\n\t}\n\n\treturn factory, nil\n}\n","sourceCodeStart":66,"sourceCodeEnd":89,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/replication/transfer/transfer.go#L66-L89","documentation":"Error \"transfer factory for %s not found\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/replication/transfer/transfer.go:84 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":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}