multica-ai/multica · error
--url cannot be empty
Error message
--url cannot be empty
What it means
Error "--url cannot be empty" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_project.go:825
ref := map[string]any{}
// Seed from the existing row so a `--default-branch-hint` edit doesn't
// clobber the `url` (server overwrites resource_ref wholesale).
if existingRef != nil {
if u, ok := existingRef["url"].(string); ok && strings.TrimSpace(u) != "" {
ref["url"] = strings.TrimSpace(u)
}
if h, ok := existingRef["default_branch_hint"].(string); ok && strings.TrimSpace(h) != "" {
ref["default_branch_hint"] = strings.TrimSpace(h)
}
if checkoutRef, ok := existingRef["ref"].(string); ok && strings.TrimSpace(checkoutRef) != "" {
ref["ref"] = strings.TrimSpace(checkoutRef)
}
}
if urlSet {
urlVal, _ := cmd.Flags().GetString("url")
urlVal = strings.TrimSpace(urlVal)
if urlVal == "" {
return nil, false, fmt.Errorf("--url cannot be empty")
}
ref["url"] = urlVal
}
if hintSet {
hint := strings.TrimSpace(mustString(cmd, "default-branch-hint"))
if hint == "" {
delete(ref, "default_branch_hint")
} else {
ref["default_branch_hint"] = hint
}
}
if refSet {
checkoutRef := strings.TrimSpace(mustString(cmd, "ref"))
if checkoutRef == "" {
delete(ref, "ref")
} else {
ref["ref"] = checkoutRef
}View on GitHub (pinned to 2c0912b6ec)
Solutions
- Provide a non-empty --url value.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_project.go:825 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/1a9d289922365851.
Report an issue: GitHub.