{"record":{"id":"f3a378b716f6e91f","repo":"multica-ai/multica","slug":"resolve-issue-w-f3a378","errorCode":null,"errorMessage":"resolve issue: %w","messagePattern":"resolve issue: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_issue_metadata.go","lineNumber":177,"sourceCode":"\t}\n\tbuf, err := json.Marshal(raw)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"encode string value: %w\", err)\n\t}\n\treturn buf, nil\n}\n\nfunc runIssueMetadataList(cmd *cobra.Command, args []string) error {\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()\n\n\tissueRef, err := resolveIssueRef(ctx, client, args[0])\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve issue: %w\", err)\n\t}\n\n\tvar result map[string]any\n\tif err := client.GetJSON(ctx, \"/api/issues/\"+issueRef.ID+\"/metadata\", &result); err != nil {\n\t\t// Best-effort degradation: when the server does not expose the\n\t\t// per-issue metadata endpoint (self-hosted backends running an\n\t\t// older build, missing migration, or routing issues that surface\n\t\t// as 404), an agent's bootstrap \"metadata list\" must not fail\n\t\t// the entire run. Emit an empty map and exit 0 so the agent\n\t\t// still gets the empty-metadata signal it would have gotten on\n\t\t// a fresh issue. Other status codes (auth, server errors) keep\n\t\t// real error semantics, and metadata get/set/delete are\n\t\t// unaffected — those callers still need to know when something\n\t\t// went wrong.\n\t\tvar httpErr *cli.HTTPError\n\t\tif errors.As(err, &httpErr) && httpErr.StatusCode == http.StatusNotFound {\n\t\t\toutput, _ := cmd.Flags().GetString(\"output\")\n\t\t\tempty := map[string]any{}","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_issue_metadata.go#L159-L195","documentation":"Error \"resolve issue: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_issue_metadata.go:177 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the issue key or ID exists."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}