{"record":{"id":"e05e1bf5e83f9869","repo":"goharbor/harbor","slug":"not-found-e05e1b","errorCode":"NOT_FOUND","errorMessage":"artifact %s@%s not found","messagePattern":"artifact (.+?)@(.+?) not found","errorType":"http","errorClass":"errors.Error","httpStatus":404,"severity":"error","filePath":"src/pkg/artifact/dao/dao.go","lineNumber":148,"sourceCode":"\treturn artifact, nil\n}\n\nfunc (d *dao) GetByDigest(ctx context.Context, repository, digest string) (*Artifact, error) {\n\tqs, err := orm.QuerySetter(ctx, &Artifact{}, &q.Query{\n\t\tKeywords: map[string]any{\n\t\t\t\"RepositoryName\": repository,\n\t\t\t\"Digest\":         digest,\n\t\t},\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tartifacts := []*Artifact{}\n\tif _, err = qs.All(&artifacts); err != nil {\n\t\treturn nil, err\n\t}\n\tif len(artifacts) == 0 {\n\t\treturn nil, errors.New(nil).WithCode(errors.NotFoundCode).\n\t\t\tWithMessagef(\"artifact %s@%s not found\", repository, digest)\n\t}\n\treturn artifacts[0], nil\n}\n\nfunc (d *dao) Create(ctx context.Context, artifact *Artifact) (int64, error) {\n\tormer, err := orm.FromContext(ctx)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\tid, err := ormer.Insert(artifact)\n\tif err != nil {\n\t\tif e := orm.AsConflictError(err, \"artifact %s already exists under the repository %d\",\n\t\t\tartifact.Digest, artifact.RepositoryID); e != nil {\n\t\t\terr = e\n\t\t}\n\t}\n\treturn id, err","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/artifact/dao/dao.go#L130-L166","documentation":"Error \"artifact %s@%s not found\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/artifact/dao/dao.go:148 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"}