multica-ai/multica · error

github_repo: url must be a valid http(s) or ssh git URL

Error message

github_repo: url must be a valid http(s) or ssh git URL

What it means

Error "github_repo: url must be a valid http(s) or ssh git URL" thrown in multica-ai/multica.

Source

Thrown at server/internal/handler/project_resource.go:101

}

type githubRepoRef struct {
	URL               string `json:"url"`
	DefaultBranchHint string `json:"default_branch_hint,omitempty"`
	Ref               string `json:"ref,omitempty"`
}

func validateGithubRepoRef(ref json.RawMessage) (json.RawMessage, error) {
	var payload githubRepoRef
	if err := json.Unmarshal(ref, &payload); err != nil {
		return nil, fmt.Errorf("invalid github_repo payload: %w", err)
	}
	payload.URL = strings.TrimSpace(payload.URL)
	if payload.URL == "" {
		return nil, errors.New("github_repo: url is required")
	}
	if !isValidGitRepoURL(payload.URL) {
		return nil, errors.New("github_repo: url must be a valid http(s) or ssh git URL")
	}
	payload.DefaultBranchHint = strings.TrimSpace(payload.DefaultBranchHint)
	payload.Ref = strings.TrimSpace(payload.Ref)
	out, err := json.Marshal(payload)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Execution modes for resource_type=local_directory. The zero value (absent
// field) means in_place, so resources created before worktree mode existed keep
// their original behavior without a data migration.
const (
	// localDirectoryModeInPlace runs the agent directly in the user's
	// directory, serialised by the daemon's per-path mutex: one task at a
	// time, edits land in the user's working tree.
	localDirectoryModeInPlace = "in_place"

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Use a valid http(s) URL or SSH git URL for the repository, e.g. https://github.com/org/repo.git or git@github.com:org/repo.git.

When it happens

Trigger: Thrown at server/internal/handler/project_resource.go:101 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/2f82d19678f5f1ea. Report an issue: GitHub.