Invalid Repository URL

invalid-repo-url · 400

The repository URL isn't a GitHub repository URL, so the API couldn't read its branches or its settings.

repoUrl echoes the value that was refused. GitHub is the only source Ghaym Cloud builds from.

Besides the members every error carries, this type adds repoUrl.

Common causes

  • The URL points at another host: GitLab, Bitbucket, or a Git server of your own.
  • The value is a bare owner/repo rather than a URL.
  • The URL links to a file or a branch inside the repository rather than to the repository itself.

How to fix the call

  • Send https://github.com/<owner>/<repo>, with nothing after the name except an optional .git.
  • Read repoUrl to see exactly what arrived: a shell can mangle a URL on the way.
  • If the code isn't on GitHub, say so rather than trying another format.

Example response

json
{
  "type": "invalid-repo-url",
  "title": "Invalid Repository URL",
  "detail": "Only GitHub repository URLs are supported (e.g. https://github.com/owner/repo).",
  "repoUrl": "https://gitlab.com/acme/storefront",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/git/branches",
  "method": "GET",
  "instance": "GET /v1/git/branches",
  "status": 400,
  "docs": "https://ghaym.me/docs/errors/invalid-repo-url"
}