{"record":{"id":"d6d2aad22dbf78a8","repo":"JuliusBrussee/caveman","slug":"objectstore-list-q-w","errorCode":null,"errorMessage":"objectstore: list %q: %w","messagePattern":"objectstore: list %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"shared/platform/objectstore/objectstore.go","lineNumber":360,"sourceCode":"\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\")\n\t}\n\t// Request one extra key so the caller can tell whether another page exists,\n\t// while cancelling the producer as soon as the bounded result is known.\n\tpageCtx, cancel := context.WithCancel(ctx)\n\tdefer cancel()\n\tkeys := make([]string, 0, maxKeys)\n\tvar extra string\n\tfor obj := range m.client.ListObjects(pageCtx, m.bucket, minio.ListObjectsOptions{\n\t\tPrefix: prefix, Recursive: true, StartAfter: startAfter, MaxKeys: maxKeys + 1,","sourceCodeStart":342,"sourceCodeEnd":378,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/27d5a3981a347890211bb1bf2439e5c821a63bc9/shared/platform/objectstore/objectstore.go#L342-L378","documentation":"Error \"objectstore: list %q: %w\" thrown in JuliusBrussee/caveman.","triggerScenarios":"Thrown at shared/platform/objectstore/objectstore.go:360 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the object list 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"}