JuliusBrussee/caveman · error
objectstore: list %q: %w
Error message
objectstore: list %q: %w
What it means
Error "objectstore: list %q: %w" thrown in JuliusBrussee/caveman.
Source
Thrown at shared/platform/objectstore/objectstore.go:360
return nil
}
func (m *minioStore) Exists(ctx context.Context, key string) (bool, error) {
_, err := m.client.StatObject(ctx, m.bucket, key, minio.StatObjectOptions{})
if err != nil {
if minio.ToErrorResponse(err).Code == "NoSuchKey" {
return false, nil
}
return false, fmt.Errorf("objectstore: stat %q: %w", key, err)
}
return true, nil
}
func (m *minioStore) List(ctx context.Context, prefix string) ([]string, error) {
var keys []string
for obj := range m.client.ListObjects(ctx, m.bucket, minio.ListObjectsOptions{Prefix: prefix, Recursive: true}) {
if obj.Err != nil {
return nil, fmt.Errorf("objectstore: list %q: %w", prefix, obj.Err)
}
keys = append(keys, obj.Key)
}
return keys, nil
}
func (m *minioStore) ListPage(ctx context.Context, prefix, startAfter string, maxKeys int) (ObjectPage, error) {
if maxKeys <= 0 {
return ObjectPage{}, fmt.Errorf("objectstore: page size must be positive")
}
// Request one extra key so the caller can tell whether another page exists,
// while cancelling the producer as soon as the bounded result is known.
pageCtx, cancel := context.WithCancel(ctx)
defer cancel()
keys := make([]string, 0, maxKeys)
var extra string
for obj := range m.client.ListObjects(pageCtx, m.bucket, minio.ListObjectsOptions{
Prefix: prefix, Recursive: true, StartAfter: startAfter, MaxKeys: maxKeys + 1,View on GitHub (pinned to 27d5a3981a)
Solutions
- Fix the object list error and retry.
When it happens
Trigger: Thrown at shared/platform/objectstore/objectstore.go:360 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of JuliusBrussee/caveman@27d5a3981a (2026-08-15).
Data as JSON: /api/errors/d6d2aad22dbf78a8.
Report an issue: GitHub.