multica-ai/multica · error
resolve project resource: %w
Error message
resolve project resource: %w
What it means
Error "resolve project resource: %w" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_project.go:672
return cli.PrintJSON(os.Stdout, result)
}
func runProjectResourceUpdate(cmd *cobra.Command, args []string) error {
client, err := newAPIClient(cmd)
if err != nil {
return err
}
ctx, cancel := cli.APIContext(context.Background())
defer cancel()
projectRef, err := resolveProjectID(ctx, client, args[0])
if err != nil {
return fmt.Errorf("resolve project: %w", err)
}
resourceRef, err := resolveProjectResourceID(ctx, client, projectRef.ID, args[1])
if err != nil {
return fmt.Errorf("resolve project resource: %w", err)
}
// Fetch the existing row so per-type shortcuts know which schema to
// emit and which fields to preserve. The server treats resource_ref as
// opaque-replace, so a partial edit like `--default-branch-hint` has to
// rebuild the full payload here — otherwise the unmentioned `url` would
// vanish and the server would 400.
var existing map[string]any
if err := client.GetJSON(ctx, "/api/projects/"+projectRef.ID+"/resources", &existing); err != nil {
return fmt.Errorf("list project resources: %w", err)
}
var resourceType string
var existingRef map[string]any
if list, ok := existing["resources"].([]any); ok {
for _, raw := range list {
row, ok := raw.(map[string]any)
if !ok {
continueView on GitHub (pinned to 2c0912b6ec)
Solutions
- Verify the project resource ID exists.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_project.go:672 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/63f03cad1fe98907.
Report an issue: GitHub.