{"id":"02f489a09f6a60f1","repo":"docker/cli","slug":"s-is-not-a-manifest","errorCode":null,"errorMessage":"%s is not a manifest","messagePattern":"(.+?) is not a manifest","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/registryclient/fetcher.go","lineNumber":41,"sourceCode":"\n// fetchManifest pulls a manifest from a registry and returns it. An error\n// is returned if no manifest is found matching namedRef.\nfunc fetchManifest(ctx context.Context, repo distribution.Repository, ref reference.Named) (types.ImageManifest, error) {\n\tmanifest, err := getManifest(ctx, repo, ref)\n\tif err != nil {\n\t\treturn types.ImageManifest{}, err\n\t}\n\n\tswitch v := manifest.(type) {\n\t// Removed Schema 1 support\n\tcase *schema2.DeserializedManifest:\n\t\treturn pullManifestSchemaV2(ctx, ref, repo, *v)\n\tcase *ocischema.DeserializedManifest:\n\t\treturn pullManifestOCISchema(ctx, ref, repo, *v)\n\tcase *manifestlist.DeserializedManifestList:\n\t\treturn types.ImageManifest{}, fmt.Errorf(\"%s is a manifest list\", ref)\n\t}\n\treturn types.ImageManifest{}, fmt.Errorf(\"%s is not a manifest\", ref)\n}\n\nfunc fetchList(ctx context.Context, repo distribution.Repository, ref reference.Named) ([]types.ImageManifest, error) {\n\tmanifest, err := getManifest(ctx, repo, ref)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tswitch v := manifest.(type) {\n\tcase *manifestlist.DeserializedManifestList:\n\t\treturn pullManifestList(ctx, ref, repo, *v)\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unsupported manifest format: %v\", v)\n\t}\n}\n\nfunc getManifest(ctx context.Context, repo distribution.Repository, ref reference.Named) (distribution.Manifest, error) {\n\tmanSvc, err := repo.Manifests(ctx)","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/internal/registryclient/fetcher.go#L23-L59","documentation":"Error \"%s is not a manifest\" thrown in docker/cli.","triggerScenarios":"Thrown at internal/registryclient/fetcher.go:41 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}