Saw this error today while importing a new repository (Note I have replaced some sensitive logs with XXX):
Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] [2017-06-22 22:50:05] EXCEPTION: (PhutilProxyException) Error while executing Task ID 2828587. {>} (Exception) Rejecting ambiguous URI "XXX://123456 XXX XXX? XXX://123456 XXX XXX". This URI is not formatted or encoded properly. at [<phutil>/src/parser/PhutilURI.php:51] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] arcanist(head=master, ref.master=c04f141ab023),phab-extensions(head=master, ref.master=68d7cc5707dc), phabricator(head=master, ref.master=58df1b7d3be2), phutil(head=master, ref.master=fa993854745c) Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #0 <#2> PhutilURI::__construct(string) called at [<phabricator>/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php:12] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #1 <#2> PhabricatorYoutubeRemarkupRule::apply(string) called at [<phutil>/src/markup/engine/remarkup/blockrule/PhutilRemarkupBlockRule.php:84] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #2 <#2> PhutilRemarkupBlockRule::applyRules(string) called at [<phutil>/src/markup/engine/remarkup/blockrule/PhutilRemarkupDefaultBlockRule.php:17] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #3 <#2> PhutilRemarkupDefaultBlockRule::markupText(string, NULL) called at [<phutil>/src/markup/engine/PhutilRemarkupEngine.php:232] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #4 <#2> PhutilRemarkupEngine::markupBlock(array) called at [<phutil>/src/markup/engine/PhutilRemarkupEngine.php:128] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #5 <#2> PhutilRemarkupEngine::preprocessText(string) called at [<phutil>/src/markup/engine/PhutilRemarkupEngine.php:94] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #6 <#2> PhutilRemarkupEngine::markupText(string) called at [<phabricator>/src/infrastructure/markup/PhabricatorMarkupEngine.php:602] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #7 <#2> PhabricatorMarkupEngine::extractFilePHIDsFromEmbeddedFiles(PhabricatorUser, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:3245] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #8 <#2> PhabricatorApplicationTransactionEditor::extractFilePHIDs(PhabricatorRepositoryCommit, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:959] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #9 <#2> PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorRepositoryCommit, array) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php:102] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #10 <#2> PhabricatorRepositoryCommitHeraldWorker::parseCommit(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:51] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #11 <#2> PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:123] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #12 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #13 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #14 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:219] Daemon 87860 STDE [Thu, 22 Jun 2017 22:50:05 -0700] #15 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:131] Daemon 87860 FAIL [Thu, 22 Jun 2017 22:50:05 -0700] Process exited with error 255.
This causes the repository to sit at importing 99.99%. It also causes any attempt to view that commit in the repo to show "Unhandled Exception.... This URI is not formatted or encoded properly." in the UI.