{"record":{"id":"2b672f5954e4288c","repo":"github/github-mcp-server","slug":"failed-to-resolve-project-item-for-s-s-d-w","errorCode":null,"errorMessage":"failed to resolve project item for %s/%s#%d: %w","messagePattern":"failed to resolve project item for (.+?)/(.+?)#(.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/github/projects_resolver.go","lineNumber":528,"sourceCode":"\t\tPageInfo PageInfoFragment\n\t}\n\n\tvar firstPageQuery struct {\n\t\tRepository struct {\n\t\t\tIssue struct {\n\t\t\t\tProjectItems projectItemsConnection `graphql:\"projectItems(first: 50, includeArchived: true)\"`\n\t\t\t} `graphql:\"issue(number: $issueNumber)\"`\n\t\t} `graphql:\"repository(owner: $issueOwner, name: $issueRepo)\"`\n\t}\n\n\tvars := map[string]any{\n\t\t\"issueOwner\":  githubv4.String(issueOwner),\n\t\t\"issueRepo\":   githubv4.String(issueRepo),\n\t\t\"issueNumber\": githubv4.Int(int32(issueNumber)), //nolint:gosec // Issue numbers are small\n\t}\n\n\tif err := gqlClient.Query(ctx, &firstPageQuery, vars); err != nil {\n\t\treturn \"\", 0, fmt.Errorf(\"failed to resolve project item for %s/%s#%d: %w\", issueOwner, issueRepo, issueNumber, err)\n\t}\n\n\tprojectItems := firstPageQuery.Repository.Issue.ProjectItems\n\tfor {\n\t\tfor _, item := range projectItems.Nodes {\n\t\t\tif item.Project.ID == projectID {\n\t\t\t\tparsedItemID, parseErr := parseInt64(string(item.FullDatabaseID))\n\t\t\t\tif parseErr != nil {\n\t\t\t\t\treturn \"\", 0, fmt.Errorf(\"project item ID %q is not an integer: %w\", string(item.FullDatabaseID), parseErr)\n\t\t\t\t}\n\t\t\t\treturn fmt.Sprintf(\"%v\", item.ID), parsedItemID, nil\n\t\t\t}\n\t\t}\n\n\t\tif !projectItems.PageInfo.HasNextPage {\n\t\t\tbreak\n\t\t}\n","sourceCodeStart":510,"sourceCodeEnd":546,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/pkg/github/projects_resolver.go#L510-L546","documentation":"Error \"failed to resolve project item for %s/%s#%d: %w\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at pkg/github/projects_resolver.go:528 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-16T03:17:38.424Z"}