multica-ai/multica · error
fetch agents: %w
Error message
fetch agents: %w
What it means
Error "fetch agents: %w" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_issue.go:2618
if kinds.member {
fetchAttempts++
var members []map[string]any
if err := getAssigneeJSON(ctx, client, "/api/workspaces/"+client.WorkspaceID+"/members", &members); err != nil {
errs = append(errs, fmt.Errorf("fetch members: %w", err))
} else {
for _, m := range members {
classify("member", strVal(m, "user_id"), strVal(m, "name"))
}
}
}
// Search agents.
if kinds.agent {
fetchAttempts++
var agents []map[string]any
agentPath := "/api/agents?" + url.Values{"workspace_id": {client.WorkspaceID}}.Encode()
if err := getAssigneeJSON(ctx, client, agentPath, &agents); err != nil {
errs = append(errs, fmt.Errorf("fetch agents: %w", err))
} else {
for _, a := range agents {
classify("agent", strVal(a, "id"), strVal(a, "name"))
}
}
}
// Search squads. The platform allows issues to be assigned to a squad
// (the leader agent then coordinates delegation), so squad names must
// resolve here too for issue-assignee callers — otherwise a user saying
// "assign to <SquadName>" silently falls through and the autopilot
// prompt emits "Unrecognized assignee: <SquadName>" (MUL-2165). Callers
// whose target schema is member-or-agent only (project lead, subscriber)
// must opt out via `kinds.squad = false`.
if kinds.squad {
fetchAttempts++
var squads []map[string]any
if err := getAssigneeJSON(ctx, client, "/api/squads", &squads); err != nil {View on GitHub (pinned to 2c0912b6ec)
Solutions
- Check server connectivity and retry fetching agents.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_issue.go:2618 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/9aee9380e385fbac.
Report an issue: GitHub.