github/github-mcp-server · error

field %q is ITERATION; value must be a non-empty iteration I

Error message

field %q is ITERATION; value must be a non-empty iteration ID string

What it means

Error "field %q is ITERATION; value must be a non-empty iteration ID string" thrown in github/github-mcp-server.

Source

Thrown at pkg/github/projects_batch.go:630

		} else {
			known := false
			for _, opt := range field.Options {
				if opt.ID == s {
					known = true
					break
				}
			}
			if !known {
				return zero, optErr
			}
		}
		v := githubv4.String(optID)
		return githubv4.ProjectV2FieldValue{SingleSelectOptionID: &v}, nil

	case "ITERATION":
		s, ok := raw.(string)
		if !ok || s == "" {
			return zero, fmt.Errorf("field %q is ITERATION; value must be a non-empty iteration ID string", field.Name)
		}
		v := githubv4.String(s)
		return githubv4.ProjectV2FieldValue{IterationID: &v}, nil

	default:
		return zero, fmt.Errorf("field %q has unsupported data type %q for update_project_items; use update_project_item instead", field.Name, field.DataType)
	}
}

func toFloat64(raw any) (float64, bool) {
	var number float64
	switch v := raw.(type) {
	case float64:
		number = v
	case int:
		number = float64(v)
	case int64:
		number = float64(v)

View on GitHub (pinned to 0ea1f775a7)

When it happens

Trigger: Thrown at pkg/github/projects_batch.go:630 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/023c2dbd834d13c8. Report an issue: GitHub.