multica-ai/multica · error
remove project resource: %w
Error message
remove project resource: %w
What it means
Error "remove project resource: %w" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_project.go:946
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)
}
if err := client.DeleteJSON(ctx, "/api/projects/"+projectRef.ID+"/resources/"+resourceRef.ID); err != nil {
return fmt.Errorf("remove project resource: %w", err)
}
fmt.Fprintf(os.Stderr, "Resource %s removed from project %s.\n", resourceRef.Display, projectRef.Display)
return nil
}
// summarizeResourceRef extracts the most useful single string from a
// resource_ref object — for github_repo this is the URL; for
// local_directory it is the local path.
func summarizeResourceRef(raw any) string {
m, ok := raw.(map[string]any)
if !ok {
return ""
}
if u, ok := m["url"].(string); ok && u != "" {
if ref, ok := m["ref"].(string); ok && strings.TrimSpace(ref) != "" {
return u + " @ " + strings.TrimSpace(ref)
}View on GitHub (pinned to 2c0912b6ec)
Solutions
- Verify the resource exists and retry the removal.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_project.go:946 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/22c8a56c1027e71a.
Report an issue: GitHub.