multica-ai/multica · error

create issue: %w

Error message

create issue: %w

What it means

Error "create issue: %w" thrown in multica-ai/multica.

Source

Thrown at server/cmd/multica/cmd_issue.go:1193

	}

	// Pre-validate attachments BEFORE creating the issue so a bad path can
	// never produce a half-created issue (which would otherwise trigger
	// callers — especially the agent doing quick-create — to retry the whole
	// `issue create` and end up with duplicates). URLs are warned+skipped, the
	// workdir guard is applied, and every local path is read upfront; a failure
	// here surfaces pre-create so the issue never lands.
	pending, err := collectLocalAttachments(cmd, attachments)
	if err != nil {
		return err
	}

	var result map[string]any
	if err := client.PostJSON(ctx, "/api/issues", body, &result); err != nil {
		if msg, ok := activeDuplicateIssueCreateMessage(err); ok {
			return errors.New(msg)
		}
		return fmt.Errorf("create issue: %w", err)
	}

	// Upload attachments and link them to the newly created issue.
	// Failures here are partial-success: the issue exists already, so
	// turning a non-zero exit on the caller would invite a retry that
	// duplicates the issue. Warn on stderr and continue.
	issueID := strVal(result, "id")
	for _, att := range pending {
		if _, uploadErr := client.UploadFile(ctx, att.data, att.path, issueID); uploadErr != nil {
			fmt.Fprintf(os.Stderr, "warning: upload attachment %s failed (issue already created, %s): %v\n",
				att.path, strVal(result, "identifier"), uploadErr)
			continue
		}
		fmt.Fprintf(os.Stderr, "Uploaded %s\n", att.path)
	}

	output, _ := cmd.Flags().GetString("output")
	if output == "table" {

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Check the server response for details and retry creating the issue.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_issue.go:1193 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/8812b62e48daab1e. Report an issue: GitHub.