github/github-mcp-server · error

project item %d: %w

Error message

project item %d: %w

What it means

Error "project item %d: %w" thrown in github/github-mcp-server.

Source

Thrown at pkg/github/projects_batch.go:719

			if ctx.Err() != nil {
				mu.Lock()
				out[id] = itemLookupResult{err: ctx.Err()}
				mu.Unlock()
				return
			}

			var item *github.ProjectV2Item
			var err error
			if ownerType == "org" {
				item, _, err = client.Projects.GetOrganizationProjectItem(ctx, owner, projectNumber, id, nil)
			} else {
				item, _, err = client.Projects.GetUserProjectItem(ctx, owner, projectNumber, id, nil)
			}

			var res itemLookupResult
			switch {
			case err != nil:
				res = itemLookupResult{err: fmt.Errorf("project item %d: %w", id, err)}
			case item == nil || item.NodeID == nil || *item.NodeID == "":
				res = itemLookupResult{err: fmt.Errorf("project item %d: response did not include a node id", id)}
			default:
				res = itemLookupResult{nodeID: *item.NodeID, fullDatabaseID: id}
			}

			mu.Lock()
			out[id] = res
			mu.Unlock()
		}(id)
	}
	wg.Wait()
	return out
}

type issueRefKey struct {
	owner  string
	repo   string

View on GitHub (pinned to 0ea1f775a7)

When it happens

Trigger: Thrown at pkg/github/projects_batch.go:719 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of github/github-mcp-server@0ea1f775a7 (2026-08-15). Data as JSON: /api/errors/6fa2e094a5c58ff9. Report an issue: GitHub.