{"record":{"id":"d99da3962b30f3f5","repo":"dagger/dagger","slug":"decode-persisted-file-blob-lazy-w","errorCode":null,"errorMessage":"decode persisted file blob lazy: %w","messagePattern":"decode persisted file blob lazy: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/file.go","lineNumber":418,"sourceCode":"\t\tpayload, err := lazy.EncodePersisted(ctx, cache)\n\t\treturn persistedFileLazyKindWithReplaced, payload, err\n\tcase *FileWithTimestampsLazy:\n\t\tpayload, err := lazy.EncodePersisted(ctx, cache)\n\t\treturn persistedFileLazyKindWithTimestamps, payload, err\n\tcase *FileChownLazy:\n\t\tpayload, err := lazy.EncodePersisted(ctx, cache)\n\t\treturn persistedFileLazyKindChown, payload, err\n\tdefault:\n\t\treturn \"\", nil, fmt.Errorf(\"encode persisted file lazy: unsupported lazy type %T\", lazy)\n\t}\n}\n\nfunc decodePersistedFileLazy(ctx context.Context, dag *dagql.Server, lazyKind string, payload json.RawMessage) (Lazy[*File], error) {\n\tswitch lazyKind {\n\tcase persistedFileLazyKindBlob:\n\t\tvar persisted persistedFileBlobLazy\n\t\tif err := json.Unmarshal(payload, &persisted); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"decode persisted file blob lazy: %w\", err)\n\t\t}\n\t\treturn &FileBlobLazy{\n\t\t\tLazyState:   NewLazyState(),\n\t\t\tFilename:    persisted.Filename,\n\t\t\tContents:    slices.Clone(persisted.Contents),\n\t\t\tPermissions: persisted.Permissions,\n\t\t}, nil\n\tcase persistedFileLazyKindDirectoryFile:\n\t\tvar persisted persistedFileSubfileLazy\n\t\tif err := json.Unmarshal(payload, &persisted); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"decode persisted file subfile lazy: %w\", err)\n\t\t}\n\t\tparent, err := loadPersistedObjectResultByResultID[*Directory](ctx, dag, persisted.ParentResultID, \"file subfile parent\")\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn &FileSubfileLazy{LazyState: NewLazyState(), Parent: parent, Path: persisted.Path}, nil\n\tcase persistedFileLazyKindContainerFile:","sourceCodeStart":400,"sourceCodeEnd":436,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/core/file.go#L400-L436","documentation":"Wraps json.Unmarshal failure in decodePersistedFileLazy for the blob lazy kind: the stored payload for a lazy blob-backed File does not match persistedFileBlobLazy's schema, so the lazy blob cannot be restored.","triggerScenarios":"Thrown at core/file.go:418 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the operation to re-encode the lazy File","Invalidate the corrupted persisted result"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"82ba2681dbe30d3547a1dc50ea495900ab5b6047","analyzedAt":"2026-09-05T07:21:37.930Z","contentChangedAt":"2026-09-05T07:21:37.930Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}