{"id":"7a3f47e78439b8b8","repo":"docker/cli","slug":"s-has-no-payload","errorCode":null,"errorMessage":"%s has no payload","messagePattern":"(.+?) has no payload","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/manifest/types/types.go","lineNumber":85,"sourceCode":"\t\trefs := i.OCIManifest.References()\n\t\tdigests = make([]digest.Digest, 0, len(refs))\n\t\tfor _, descriptor := range refs {\n\t\t\tdigests = append(digests, descriptor.Digest)\n\t\t}\n\t}\n\treturn digests\n}\n\n// Payload returns the media type and bytes for the manifest\nfunc (i ImageManifest) Payload() (string, []byte, error) {\n\t// TODO: If available, read content from a content store by digest\n\tswitch {\n\tcase i.SchemaV2Manifest != nil:\n\t\treturn i.SchemaV2Manifest.Payload()\n\tcase i.OCIManifest != nil:\n\t\treturn i.OCIManifest.Payload()\n\tdefault:\n\t\treturn \"\", nil, fmt.Errorf(\"%s has no payload\", i.Ref)\n\t}\n}\n\n// References implements the distribution.Manifest interface. It delegates to\n// the underlying manifest.\nfunc (i ImageManifest) References() []distribution.Descriptor {\n\tswitch {\n\tcase i.SchemaV2Manifest != nil:\n\t\treturn i.SchemaV2Manifest.References()\n\tcase i.OCIManifest != nil:\n\t\treturn i.OCIManifest.References()\n\tdefault:\n\t\treturn nil\n\t}\n}\n\n// NewImageManifest returns a new ImageManifest object. The values for Platform\n// are initialized from those in the image","sourceCodeStart":67,"sourceCodeEnd":103,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/manifest/types/types.go#L67-L103","documentation":"Error \"%s has no payload\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/manifest/types/types.go:85 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}