{"record":{"id":"396b7486d6bd539e","repo":"dagger/dagger","slug":"decode-persisted-container-withoutlabel-lazy-paylo","errorCode":null,"errorMessage":"decode persisted container withoutLabel lazy payload: %w","messagePattern":"decode persisted container withoutLabel lazy payload: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/container.go","lineNumber":4470,"sourceCode":"\t\tvar persisted persistedContainerWithLabelLazy\n\t\tif err := json.Unmarshal(payload, &persisted); err != nil {\n\t\t\treturn fmt.Errorf(\"decode persisted container withLabel lazy payload: %w\", err)\n\t\t}\n\t\tparent, err := loadPersistedObjectResultByResultID[*Container](ctx, dag, persisted.ParentResultID, \"container withLabel parent\")\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcontainer.Lazy = &ContainerWithLabelLazy{\n\t\t\tLazyState: NewLazyState(),\n\t\t\tParent:    parent,\n\t\t\tName:      persisted.Name,\n\t\t\tValue:     persisted.Value,\n\t\t}\n\t\treturn nil\n\tcase \"withoutLabel\":\n\t\tvar persisted persistedContainerWithoutLabelLazy\n\t\tif err := json.Unmarshal(payload, &persisted); err != nil {\n\t\t\treturn fmt.Errorf(\"decode persisted container withoutLabel lazy payload: %w\", err)\n\t\t}\n\t\tparent, err := loadPersistedObjectResultByResultID[*Container](ctx, dag, persisted.ParentResultID, \"container withoutLabel parent\")\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcontainer.Lazy = &ContainerWithoutLabelLazy{\n\t\t\tLazyState: NewLazyState(),\n\t\t\tParent:    parent,\n\t\t\tName:      persisted.Name,\n\t\t}\n\t\treturn nil\n\tcase \"__withImageConfigMetadata\":\n\t\tvar persisted persistedContainerWithImageConfigMetadataLazy\n\t\tif err := json.Unmarshal(payload, &persisted); err != nil {\n\t\t\treturn fmt.Errorf(\"decode persisted container withImageConfigMetadata lazy payload: %w\", err)\n\t\t}\n\t\tparent, err := loadPersistedObjectResultByResultID[*Container](ctx, dag, persisted.ParentResultID, \"container withImageConfigMetadata parent\")\n\t\tif err != nil {","sourceCodeStart":4452,"sourceCodeEnd":4488,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/core/container.go#L4452-L4488","documentation":"In the persisted-Container decoder, the withoutLabel lazy case unmarshals its stored JSON payload into persistedContainerWithoutLabelLazy. This error fires when the payload is malformed or written by an incompatible schema version, blocking restoration of that Container step.","triggerScenarios":"Thrown at core/container.go:4470 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate the payload's parentResultID and name fields","Invalidate and re-derive the stale persisted object","Escalate if reproducible on freshly persisted data"],"exampleFix":null,"handlingStrategy":"validation","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"}