{"record":{"id":"3f23fac38597c5ad","repo":"JuliusBrussee/caveman","slug":"objectstore-stat-q-w","errorCode":null,"errorMessage":"objectstore: stat %q: %w","messagePattern":"objectstore: stat %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"shared/platform/objectstore/objectstore.go","lineNumber":351,"sourceCode":"\t\tif err := m.client.RemoveObject(ctx, m.bucket, obj.Key, minio.RemoveObjectOptions{VersionID: obj.VersionID}); err != nil {\n\t\t\treturn fmt.Errorf(\"objectstore: delete version %q (%q): %w\", obj.Key, obj.VersionID, err)\n\t\t}\n\t}\n\tif exact && !found {\n\t\t// Non-versioned/S3-compatible backends may omit version listings. Ordinary\n\t\t// deletion remains idempotent and covers that deployment shape.\n\t\treturn m.Delete(ctx, keyOrPrefix)\n\t}\n\treturn nil\n}\n\nfunc (m *minioStore) Exists(ctx context.Context, key string) (bool, error) {\n\t_, err := m.client.StatObject(ctx, m.bucket, key, minio.StatObjectOptions{})\n\tif err != nil {\n\t\tif minio.ToErrorResponse(err).Code == \"NoSuchKey\" {\n\t\t\treturn false, nil\n\t\t}\n\t\treturn false, fmt.Errorf(\"objectstore: stat %q: %w\", key, err)\n\t}\n\treturn true, nil\n}\n\nfunc (m *minioStore) List(ctx context.Context, prefix string) ([]string, error) {\n\tvar keys []string\n\tfor obj := range m.client.ListObjects(ctx, m.bucket, minio.ListObjectsOptions{Prefix: prefix, Recursive: true}) {\n\t\tif obj.Err != nil {\n\t\t\treturn nil, fmt.Errorf(\"objectstore: list %q: %w\", prefix, obj.Err)\n\t\t}\n\t\tkeys = append(keys, obj.Key)\n\t}\n\treturn keys, nil\n}\n\nfunc (m *minioStore) ListPage(ctx context.Context, prefix, startAfter string, maxKeys int) (ObjectPage, error) {\n\tif maxKeys <= 0 {\n\t\treturn ObjectPage{}, fmt.Errorf(\"objectstore: page size must be positive\")","sourceCodeStart":333,"sourceCodeEnd":369,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/27d5a3981a347890211bb1bf2439e5c821a63bc9/shared/platform/objectstore/objectstore.go#L333-L369","documentation":"Error \"objectstore: stat %q: %w\" thrown in JuliusBrussee/caveman.","triggerScenarios":"Thrown at shared/platform/objectstore/objectstore.go:351 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the object stat error and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"27d5a3981a347890211bb1bf2439e5c821a63bc9","analyzedAt":"2026-08-15T09:26:11.751Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}