multica-ai/multica · error
update issue
Error message
update issue: %w
What it means
The PUT to /api/issues/<id> for `issue update` failed (validation, auth, not found, or network). The local guards (status/priority validation, no-fields check) already passed, so this reflects a server-side or transport failure.
Solutions
- Check the server response for details and retry the update.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at server/cmd/multica/cmd_issue.go:1362 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/a81654bba8950474.
Report an issue: GitHub.
Appendix: source
Thrown at server/cmd/multica/cmd_issue.go:1362
return fmt.Errorf("--stage must be >= 1")
}
body["stage"] = stage
}
if cmd.Flags().Changed("position") {
v, _ := cmd.Flags().GetFloat64("position")
body["position"] = v
}
if len(body) == 0 {
return fmt.Errorf("no fields to update; use flags like --title, --status, --priority, --assignee, etc.")
}
if noStart {
body["suppress_run"] = true
}
var result map[string]any
if err := client.PutJSON(ctx, "/api/issues/"+issueRef.ID, body, &result); err != nil {
return fmt.Errorf("update issue: %w", err)
}
output, _ := cmd.Flags().GetString("output")
if output == "table" {
headers := []string{"KEY", "TITLE", "STATUS", "PRIORITY"}
rows := [][]string{{
issueDisplayKey(result),
strVal(result, "title"),
strVal(result, "status"),
strVal(result, "priority"),
}}
cli.PrintTable(os.Stdout, headers, rows)
return nil
}
return cli.PrintJSON(os.Stdout, result)
}
View on GitHub (pinned to 2c0912b6ec)