{"record":{"id":"d859be3a9570daf4","repo":"goharbor/harbor","slug":"adapter-factory-for-s-not-found","errorCode":null,"errorMessage":"adapter factory for %s not found","messagePattern":"adapter factory for (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":500,"severity":"error","filePath":"src/pkg/reg/adapter/adapter.go","lineNumber":100,"sourceCode":"\n\tif _, exist := registry[t]; exist {\n\t\treturn fmt.Errorf(\"adapter factory for %s already exists\", t)\n\t}\n\tregistry[t] = factory\n\tregistryKeys = append(registryKeys, t)\n\tsort.Strings(registryKeys)\n\tadapterInfo := factory.AdapterPattern()\n\tif adapterInfo != nil {\n\t\tadapterInfoMap[t] = adapterInfo\n\t}\n\treturn nil\n}\n\n// GetFactory gets the adapter factory by the specified name\nfunc GetFactory(t string) (Factory, error) {\n\tfactory, exist := registry[t]\n\tif !exist {\n\t\treturn nil, fmt.Errorf(\"adapter factory for %s not found\", t)\n\t}\n\treturn factory, nil\n}\n\n// ListRegisteredAdapterTypes lists the registered Adapter type\nfunc ListRegisteredAdapterTypes() []string {\n\treturn registryKeys\n}\n\n// ListRegisteredAdapterInfos list the adapter infos\nfunc ListRegisteredAdapterInfos() map[string]*model.AdapterPattern {\n\treturn adapterInfoMap\n}\n","sourceCodeStart":82,"sourceCodeEnd":114,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/adapter.go#L82-L114","documentation":"Error \"adapter factory for %s not found\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/adapter.go:100 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"}