{"id":"c12e67489a05c2e5","repo":"docker/cli","slug":"failed-to-configure-transport-w","errorCode":null,"errorMessage":"failed to configure transport: %w","messagePattern":"failed to configure transport: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/registryclient/client.go","lineNumber":156,"sourceCode":"\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}\n\treturn distributionclient.NewRepository(repoName, repoEndpoint.BaseURL(), httpTransport)\n}\n\nfunc (c *client) getHTTPTransportForRepoEndpoint(ctx context.Context, repoEndpoint repositoryEndpoint) (http.RoundTripper, error) {\n\thttpTransport, err := getHTTPTransport(\n\t\tc.authConfigResolver(ctx, repoEndpoint.indexInfo.Name),\n\t\trepoEndpoint.endpoint,\n\t\trepoEndpoint.repoName,\n\t\tc.userAgent,\n\t\trepoEndpoint.actions,\n\t)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to configure transport: %w\", err)\n\t}\n\treturn httpTransport, nil\n}\n\n// GetManifest returns an ImageManifest for the reference\nfunc (c *client) GetManifest(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error) {\n\tvar result manifesttypes.ImageManifest\n\tfetch := func(ctx context.Context, repo distribution.Repository, ref reference.Named) (bool, error) {\n\t\tvar err error\n\t\tresult, err = fetchManifest(ctx, repo, ref)\n\t\treturn result.Ref != nil, err\n\t}\n\n\terr := c.iterateEndpoints(ctx, ref, fetch)\n\treturn result, err\n}\n\n// GetManifestList returns a list of ImageManifest for the reference","sourceCodeStart":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/internal/registryclient/client.go#L138-L174","documentation":"Error \"failed to configure transport: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at internal/registryclient/client.go:156 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}