JuliusBrussee/caveman · error
objectstore: put %q: %w
Error message
objectstore: put %q: %w
What it means
Error "objectstore: put %q: %w" thrown in JuliusBrussee/caveman.
Source
Thrown at shared/platform/objectstore/objectstore.go:278
cleaned = true
exists, err := store.Exists(ctx, key)
if err != nil {
return err
}
if exists {
return errors.New("probe object still exists after purge")
}
return nil
}
func (m *minioStore) Put(ctx context.Context, key string, body []byte, contentType string) error {
if contentType == "" {
contentType = "application/octet-stream"
}
_, err := m.client.PutObject(ctx, m.bucket, key, bytes.NewReader(body), int64(len(body)),
minio.PutObjectOptions{ContentType: contentType})
if err != nil {
return fmt.Errorf("objectstore: put %q: %w", key, err)
}
return nil
}
func (m *minioStore) Get(ctx context.Context, key string) ([]byte, error) {
obj, err := m.client.GetObject(ctx, m.bucket, key, minio.GetObjectOptions{})
if err != nil {
return nil, fmt.Errorf("objectstore: get %q: %w", key, err)
}
defer obj.Close()
maxBytes := int64(env.Int("CAVE_OBJECTSTORE_MAX_READ_BYTES", 64<<20))
if maxBytes <= 0 {
maxBytes = 64 << 20
}
body, err := io.ReadAll(io.LimitReader(obj, maxBytes+1))
if err != nil {
if minio.ToErrorResponse(err).Code == "NoSuchKey" {
return nil, ErrNotFoundView on GitHub (pinned to 27d5a3981a)
Solutions
- Fix the object put error and retry.
When it happens
Trigger: Thrown at shared/platform/objectstore/objectstore.go:278 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/d9523e48c74703a5.
Report an issue: GitHub.