{"id":"6dc49a17d9fbbf8a","repo":"docker/cli","slug":"failed-to-put-manifest-s-w","errorCode":null,"errorMessage":"failed to put manifest %s: %w","messagePattern":"failed to put manifest (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/registryclient/client.go","lineNumber":117,"sourceCode":"\trepoEndpoint.actions = []string{\"pull\", \"push\"}\n\trepo, err := c.getRepositoryForReference(ctx, ref, repoEndpoint)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tmanifestService, err := repo.Manifests(ctx)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t_, opts, err := getManifestOptionsFromReference(ref)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tdgst, err := manifestService.Put(ctx, manifest, opts...)\n\tif err != nil {\n\t\treturn dgst, fmt.Errorf(\"failed to put manifest %s: %w\", ref, err)\n\t}\n\treturn dgst, nil\n}\n\nfunc (c *client) getRepositoryForReference(ctx context.Context, ref reference.Named, repoEndpoint repositoryEndpoint) (distribution.Repository, error) {\n\trepoName, err := reference.WithName(repoEndpoint.repoName)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to parse repo name from %s: %w\", ref, err)\n\t}\n\thttpTransport, err := c.getHTTPTransportForRepoEndpoint(ctx, repoEndpoint)\n\tif err != nil {\n\t\tif !strings.Contains(err.Error(), \"server gave HTTP response to HTTPS client\") {\n\t\t\treturn nil, err\n\t\t}\n\t\tif !repoEndpoint.endpoint.TLSConfig.InsecureSkipVerify {\n\t\t\treturn nil, httpProtoError{cause: err}\n\t\t}\n\t\t// --insecure was set; fall back to plain HTTP","sourceCodeStart":99,"sourceCodeEnd":135,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/internal/registryclient/client.go#L99-L135","documentation":"Error \"failed to put manifest %s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at internal/registryclient/client.go:117 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}