{"record":{"id":"0b9fee36cd77fc87","repo":"phacility/phabricator","slug":"the-uri-protocol-is-unrecognized-it-should-begin","errorCode":null,"errorMessage":"The URI protocol is unrecognized. It should begin with \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", or be in the form \"%s\".","messagePattern":"The URI protocol is unrecognized\\. It should begin with \"(.+?)\", \"(.+?)\", \"(.+?)\", \"(.+?)\", \"(.+?)\", \"(.+?)\", or be in the form \"(.+?)\"\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/repository/storage/PhabricatorRepository.php","lineNumber":1677,"sourceCode":"            'proto://domain:/path',\n            ':/path'));\n      }\n    }\n\n    switch ($protocol) {\n      case 'ssh':\n      case 'http':\n      case 'https':\n      case 'git':\n      case 'svn':\n      case 'svn+ssh':\n        break;\n      default:\n        // NOTE: We're explicitly rejecting 'file://' because it can be\n        // used to clone from the working copy of another repository on disk\n        // that you don't normally have permission to access.\n\n        throw new Exception(\n          pht(\n            'The URI protocol is unrecognized. It should begin with '.\n            '\"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", or be in the form \"%s\".',\n            'ssh://',\n            'http://',\n            'https://',\n            'git://',\n            'svn://',\n            'svn+ssh://',\n            'git@domain.com:path'));\n    }\n\n    return true;\n  }\n\n\n  /**\n   * Load the pull frequency for this repository, based on the time since the","sourceCodeStart":1659,"sourceCodeEnd":1695,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/repository/storage/PhabricatorRepository.php#L1659-L1695","documentation":"Error \"The URI protocol is unrecognized. It should begin with \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", or be in the form \"%s\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/repository/storage/PhabricatorRepository.php:1677 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}