{"record":{"id":"1673749b6be0f91f","repo":"github/github-mcp-server","slug":"failed-to-create-raw-client-w","errorCode":null,"errorMessage":"failed to create raw client: %w","messagePattern":"failed to create raw client: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/ghmcp/server.go","lineNumber":110,"sourceCode":"\n\t// Construct GraphQL client\n\t// We use NewEnterpriseClient unconditionally since we already parsed the API host\n\tgqlHTTPClient := &http.Client{\n\t\tTransport: &transport.BearerAuthTransport{\n\t\t\tTransport: &transport.GraphQLFeaturesTransport{\n\t\t\t\tTransport: http.DefaultTransport,\n\t\t\t},\n\t\t\tToken:         cfg.Token,\n\t\t\tTokenProvider: cfg.TokenProvider,\n\t\t},\n\t}\n\n\tgqlClient := githubv4.NewEnterpriseClient(graphQLURL.String(), gqlHTTPClient)\n\n\t// Create raw content client (shares REST client's HTTP transport)\n\trawClient, err := raw.NewClient(restClient, rawURL)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create raw client: %w\", err)\n\t}\n\n\t// Set up repo access cache for lockdown mode\n\tvar repoAccessCache *lockdown.RepoAccessCache\n\tif cfg.LockdownMode {\n\t\topts := []lockdown.RepoAccessOption{\n\t\t\tlockdown.WithLogger(cfg.Logger.With(\"component\", \"lockdown\")),\n\t\t}\n\t\tif cfg.RepoAccessTTL != nil {\n\t\t\topts = append(opts, lockdown.WithTTL(*cfg.RepoAccessTTL))\n\t\t}\n\t\trepoAccessCache = lockdown.NewRepoAccessCache(gqlClient, restClient, opts...)\n\t}\n\n\treturn &githubClients{\n\t\trest:         restClient,\n\t\trestUATransp: restUATransport,\n\t\tgql:          gqlClient,","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/internal/ghmcp/server.go#L92-L128","documentation":"Error \"failed to create raw client: %w\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at internal/ghmcp/server.go:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0ea1f775a7c73eff1bd2e25904d01136756bbfe2","analyzedAt":"2026-08-15T18:10:19.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}