{"record":{"id":"40c43338638fd92d","repo":"github/github-mcp-server","slug":"project-item-id-q-is-not-an-integer-w","errorCode":null,"errorMessage":"project item ID %q is not an integer: %w","messagePattern":"project item ID %q is not an integer: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/github/projects_resolver.go","lineNumber":537,"sourceCode":"\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\n\t\tvar nextPageQuery struct {\n\t\t\tRepository struct {\n\t\t\t\tIssue struct {\n\t\t\t\t\tProjectItems projectItemsConnection `graphql:\"projectItems(first: 50, after: $after, includeArchived: true)\"`\n\t\t\t\t} `graphql:\"issue(number: $issueNumber)\"`\n\t\t\t} `graphql:\"repository(owner: $issueOwner, name: $issueRepo)\"`\n\t\t}\n\t\tvars[\"after\"] = projectItems.PageInfo.EndCursor\n\t\tif err := gqlClient.Query(ctx, &nextPageQuery, vars); err != nil {","sourceCodeStart":519,"sourceCodeEnd":555,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/pkg/github/projects_resolver.go#L519-L555","documentation":"Error \"project item ID %q is not an integer: %w\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at pkg/github/projects_resolver.go:537 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"}