{"record":{"id":"57f36cf3fa8e49aa","repo":"goharbor/harbor","slug":"not-found-57f36c","errorCode":"NOT_FOUND","errorMessage":"the asking blob is in GC, mark it as non existing, request id: %s","messagePattern":"the asking blob is in GC, mark it as non existing, request id: (.+?)","errorType":"http","errorClass":"errors.Error","httpStatus":404,"severity":"error","filePath":"src/server/middleware/blob/head_blob.go","lineNumber":72,"sourceCode":"\t\treturn err\n\t}\n\n\tswitch bb.Status {\n\tcase blob_models.StatusNone, blob_models.StatusDelete:\n\t\tif err := blob.Ctl.Touch(req.Context(), bb); err != nil {\n\t\t\tlog.Errorf(\"failed to update blob: %s status to StatusNone, error:%v\", blobInfo.Digest, err)\n\t\t\treturn errors.Wrapf(err, \"the request id is: %s\", req.Header.Get(requestid.HeaderXRequestID))\n\t\t}\n\tcase blob_models.StatusDeleting:\n\t\tnow := time.Now().UTC()\n\t\t// if the deleting exceed 2 hours, marks the blob as StatusDeleteFailed and gives a 404, so client can push it again\n\t\tif now.Sub(bb.UpdateTime) > time.Duration(config.GetGCTimeWindow())*time.Hour {\n\t\t\tif err := blob.Ctl.Fail(req.Context(), bb); err != nil {\n\t\t\t\tlog.Errorf(\"failed to update blob: %s status to StatusDeleteFailed, error:%v\", blobInfo.Digest, err)\n\t\t\t\treturn errors.Wrapf(err, \"the request id is: %s\", req.Header.Get(requestid.HeaderXRequestID))\n\t\t\t}\n\t\t}\n\t\treturn errors.New(nil).WithMessagef(\"the asking blob is in GC, mark it as non existing, request id: %s\", req.Header.Get(requestid.HeaderXRequestID)).WithCode(errors.NotFoundCode)\n\tcase blob_models.StatusDeleteFailed:\n\t\treturn errors.New(nil).WithMessagef(\"the asking blob is delete failed, mark it as non existing, request id: %s\", req.Header.Get(requestid.HeaderXRequestID)).WithCode(errors.NotFoundCode)\n\tdefault:\n\t\treturn errors.New(nil).WithMessagef(\"wrong blob status, %s\", bb.Status)\n\t}\n\treturn nil\n}\n","sourceCodeStart":54,"sourceCodeEnd":80,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/server/middleware/blob/head_blob.go#L54-L80","documentation":"Error \"the asking blob is in GC, mark it as non existing, request id: %s\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/server/middleware/blob/head_blob.go:72 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"}