{"action":"closed","issue":{"url":"https://api.github.com/repos/JeroenDeDauw/FileFetcher/issues/4","repository_url":"https://api.github.com/repos/JeroenDeDauw/FileFetcher","labels_url":"https://api.github.com/repos/JeroenDeDauw/FileFetcher/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/JeroenDeDauw/FileFetcher/issues/4/comments","events_url":"https://api.github.com/repos/JeroenDeDauw/FileFetcher/issues/4/events","html_url":"https://github.com/JeroenDeDauw/FileFetcher/issues/4","id":164782460,"number":4,"title":"Fail gracefully if a file is not found","user":{"login":"kghbln","id":1104078,"avatar_url":"https://avatars.githubusercontent.com/u/1104078?v=3","gravatar_id":"","url":"https://api.github.com/users/kghbln","html_url":"https://github.com/kghbln","followers_url":"https://api.github.com/users/kghbln/followers","following_url":"https://api.github.com/users/kghbln/following{/other_user}","gists_url":"https://api.github.com/users/kghbln/gists{/gist_id}","starred_url":"https://api.github.com/users/kghbln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kghbln/subscriptions","organizations_url":"https://api.github.com/users/kghbln/orgs","repos_url":"https://api.github.com/users/kghbln/repos","events_url":"https://api.github.com/users/kghbln/events{/privacy}","received_events_url":"https://api.github.com/users/kghbln/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-11T08:15:52Z","updated_at":"2016-07-11T08:37:29Z","closed_at":"2016-07-11T08:37:29Z","body":"Currently we get the following exception if [a file is included](https://www.semantic-mediawiki.org/wiki/Help:Sorting) what [cannot be found](https://cdn.rawgit.com/SemanticMediaWiki/SemanticMediaWiki/master/issues/902).\r\n\r\n```\r\nException encountered, of type \"FileFetcher\\FileFetchingException\"\r\n[2b3e4ba2] /wiki/Help:Sorting FileFetcher\\FileFetchingException from line 30 of /.../w/vendor/jeroen/file-fetcher/src/SimpleFileFetcher.php: Could not fetch file: https://cdn.rawgit.com/SemanticMediaWiki/SemanticMediaWiki/master/issues/902\r\nBacktrace:\r\n#0 /.../w/vendor/jeroen/file-fetcher/src/CachingFileFetcher.php(44): FileFetcher\\SimpleFileFetcher->fetchFile(string)\r\n#1 /.../w/vendor/jeroen/file-fetcher/src/CachingFileFetcher.php(37): FileFetcher\\CachingFileFetcher->retrieveAndCacheFile(string)\r\n#2 /.../w/vendor/jeroen/mediawiki-github/src/GitHubParserHook.php(58): FileFetcher\\CachingFileFetcher->fetchFile(string)\r\n#3 /.../w/vendor/jeroen/mediawiki-github/src/GitHubParserHook.php(48): GitHub\\GitHubParserHook->getFileContent()\r\n#4 /.../w/vendor/jeroen/mediawiki-github/src/GitHubParserHook.php(36): GitHub\\GitHubParserHook->getRenderedContent()\r\n#5 /.../w/vendor/mediawiki/parser-hooks/src/FunctionRunner.php(49): GitHub\\GitHubParserHook->handle(Parser, ParamProcessor\\ProcessingResult)\r\n#6 /.../w/vendor/mediawiki/parser-hooks/src/HookRegistrant.php(45): ParserHooks\\FunctionRunner->run(Parser, array, PPTemplateFrame_DOM)\r\n#7 [internal function]: ParserHooks\\HookRegistrant->ParserHooks\\{closure}(Parser, PPTemplateFrame_DOM, array)\r\n#8 /.../w/includes/parser/Parser.php(3783): call_user_func_array(Closure, array)\r\n#9 /.../w/includes/parser/Parser.php(3517): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)\r\n#10 /.../w/includes/parser/Preprocessor_DOM.php(1169): Parser->braceSubstitution(array, PPTemplateFrame_DOM)\r\n#11 /.../w/extensions/ParserFunctions/ParserFunctions_body.php(106): PPFrame_DOM->expand(PPNode_DOM)\r\n#12 [internal function]: ExtParserFunctions::ifObj(Parser, PPTemplateFrame_DOM, array)\r\n#13 /.../w/includes/parser/Parser.php(3783): call_user_func_array(string, array)\r\n#14 /.../w/includes/parser/Parser.php(3517): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)\r\n#15 /.../w/includes/parser/Preprocessor_DOM.php(1169): Parser->braceSubstitution(array, PPTemplateFrame_DOM)\r\n#16 /.../w/extensions/ParserFunctions/ParserFunctions_body.php(106): PPFrame_DOM->expand(PPNode_DOM)\r\n#17 [internal function]: ExtParserFunctions::ifObj(Parser, PPTemplateFrame_DOM, array)\r\n#18 /.../w/includes/parser/Parser.php(3783): call_user_func_array(string, array)\r\n#19 /.../w/includes/parser/Parser.php(3517): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)\r\n#20 /.../w/includes/parser/Preprocessor_DOM.php(1169): Parser->braceSubstitution(array, PPTemplateFrame_DOM)\r\n#21 /.../w/includes/parser/Parser.php(3659): PPFrame_DOM->expand(PPNode_DOM)\r\n#22 /.../w/includes/parser/Preprocessor_DOM.php(1169): Parser->braceSubstitution(array, PPFrame_DOM)\r\n#23 /.../w/includes/parser/Parser.php(3334): PPFrame_DOM->expand(PPNode_DOM, integer)\r\n#24 /.../w/includes/parser/Parser.php(1232): Parser->replaceVariables(string)\r\n#25 /.../w/includes/parser/Parser.php(435): Parser->internalParse(string)\r\n#26 [internal function]: Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)\r\n#27 /.../w/includes/StubObject.php(105): call_user_func_array(array, array)\r\n#28 /.../w/includes/StubObject.php(129): StubObject->_call(string, array)\r\n#29 /.../w/includes/content/WikitextContent.php(333): StubObject->__call(string, array)\r\n#30 /.../w/includes/content/WikitextContent.php(333): StubObject->parse(string, Title, ParserOptions, boolean, boolean, integer)\r\n#31 /.../w/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)\r\n#32 /.../w/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Title, integer, ParserOptions)\r\n#33 /.../w/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()\r\n#34 /.../w/includes/page/Article.php(674): PoolCounterWork->execute()\r\n#35 /.../w/includes/actions/ViewAction.php(44): Article->view()\r\n#36 /.../w/includes/MediaWiki.php(463): ViewAction->show()\r\n#37 /.../w/includes/MediaWiki.php(269): MediaWiki->performAction(Article, Title)\r\n#38 /.../w/includes/MediaWiki.php(634): MediaWiki->performRequest()\r\n#39 /.../w/includes/MediaWiki.php(482): MediaWiki->main()\r\n#40 /.../w/index.php(41): MediaWiki->run()\r\n#41 {main}\r\n```"}}
{"actor":{"display_login":"JeroenDeDauw"}}