{"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":"Sentinel lookup failure in transfer.GetFactory: no resource transfer factory is registered under the requested name (the transfer implementation key from replication options). Indicates an unknown or unregistered transfer type.","triggerScenarios":"Thrown at src/controller/replication/transfer/transfer.go:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the replication options specify a valid transfer type name","Ensure the transfer package's init() registered the factory","Verify no typo in the transfer factory name"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","contentChangedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}