{"id":"cba3272b5b4b6b98","repo":"docker/cli","slug":"failed-to-parse-repo-name-from-s-w","errorCode":null,"errorMessage":"failed to parse repo name from %s: %w","messagePattern":"failed to parse repo name from (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/registryclient/client.go","lineNumber":125,"sourceCode":"\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\n\t\tif url := repoEndpoint.endpoint.URL; url != nil && url.Scheme == \"https\" {\n\t\t\turl.Scheme = \"http\"\n\t\t\thttpTransport, err = c.getHTTPTransportForRepoEndpoint(ctx, repoEndpoint)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\t}","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/internal/registryclient/client.go#L107-L143","documentation":"Error \"failed to parse repo name from %s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at internal/registryclient/client.go:125 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}