phacility/phabricator · error · Exception
The URI protocol is unrecognized. It should begin with
Error message
The URI protocol is unrecognized. It should begin with "%s", "%s", "%s", "%s", "%s", "%s", or be in the form "%s".
What it means
Protocol allowlist in assertValidRemoteURI: the URI's protocol is none of ssh, http, https, git, svn or svn+ssh (file:// is deliberately rejected because local clones can bypass access control), and it is not an implicit SCP-style URI.
Solutions
- Use one of the supported protocols for the remote URI.
- For local remotes, serve the repository over a supported protocol instead of file://.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/repository/storage/PhabricatorRepository.php:1677 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/0b9fee36cd77fc87.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/repository/storage/PhabricatorRepository.php:1677
'proto://domain:/path',
':/path'));
}
}
switch ($protocol) {
case 'ssh':
case 'http':
case 'https':
case 'git':
case 'svn':
case 'svn+ssh':
break;
default:
// NOTE: We're explicitly rejecting 'file://' because it can be
// used to clone from the working copy of another repository on disk
// that you don't normally have permission to access.
throw new Exception(
pht(
'The URI protocol is unrecognized. It should begin with '.
'"%s", "%s", "%s", "%s", "%s", "%s", or be in the form "%s".',
'ssh://',
'http://',
'https://',
'git://',
'svn://',
'svn+ssh://',
'git@domain.com:path'));
}
return true;
}
/**
* Load the pull frequency for this repository, based on the time since theView on GitHub (pinned to 5720a38cfe)