{"action":"closed","number":1994,"pull_request":{"url":"https://api.github.com/repos/ornicar/lila/pulls/1994","id":73479410,"html_url":"https://github.com/ornicar/lila/pull/1994","diff_url":"https://github.com/ornicar/lila/pull/1994.diff","patch_url":"https://github.com/ornicar/lila/pull/1994.patch","issue_url":"https://api.github.com/repos/ornicar/lila/issues/1994","number":1994,"state":"closed","locked":false,"title":"Fix import of master games","user":{"login":"niklasf","id":402777,"avatar_url":"https://avatars.githubusercontent.com/u/402777?v=3","gravatar_id":"","url":"https://api.github.com/users/niklasf","html_url":"https://github.com/niklasf","followers_url":"https://api.github.com/users/niklasf/followers","following_url":"https://api.github.com/users/niklasf/following{/other_user}","gists_url":"https://api.github.com/users/niklasf/gists{/gist_id}","starred_url":"https://api.github.com/users/niklasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklasf/subscriptions","organizations_url":"https://api.github.com/users/niklasf/orgs","repos_url":"https://api.github.com/users/niklasf/repos","events_url":"https://api.github.com/users/niklasf/events{/privacy}","received_events_url":"https://api.github.com/users/niklasf/received_events","type":"User","site_admin":false},"body":"Problem: We can't us protocol relative URLs with WS.\r\n\r\nReported here: https://de.lichess.org/forum/lichess-feedback/cant-access-imported-games#3\r\n\r\nExample: https://en.stage.lichess.org/import/master/v1thiEGv/white?fen=rnbqkb1r/pppppp1p/5np1/8/5P2/6P1/PPPPP2P/RNBQKBNR%20w%20KQkq%20-%200%203\r\n\r\nStacktrace:\r\n```\r\n[error] application - \r\n\r\n! @70cfdoaoo - Internal server error, for (GET) [/import/master/9CizUxa6/white?fen=rnbqkbnr/pp1p1ppp/8/2p1p3/2P5/6P1/PP1PPP1P/RNBQKBNR%20w%20KQkq%20-%200%203] ->\r\n \r\nplay.api.http.HttpErrorHandlerExceptions$$anon$1: Execution exception[[NullPointerException: scheme]]\r\n\tat play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:265) ~[play_2.11-2.4.6.jar:2.4.6]\r\n\tat play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:191) ~[play_2.11-2.4.6.jar:2.4.6]\r\n\tat play.api.GlobalSettings$class.onError(GlobalSettings.scala:179) [play_2.11-2.4.6.jar:2.4.6]\r\n\tat lila.app.Global$.onError(Global.scala:48) [classes/:na]\r\n\tat play.api.http.GlobalSettingsHttpErrorHandler.onServerError(HttpErrorHandler.scala:94) [play_2.11-2.4.6.jar:2.4.6]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$9$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:151) [play-netty-server_2.11-2.4.6.jar:2.4.6]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$9$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:148) [play-netty-server_2.11-2.4.6.jar:2.4.6]\r\n\tat scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) [scala-library-2.11.8.jar:na]\r\n\tat scala.util.Failure$$anonfun$recover$1.apply(Try.scala:216) [scala-library-2.11.8.jar:na]\r\n\tat scala.util.Try$.apply(Try.scala:192) [scala-library-2.11.8.jar:na]\r\nCaused by: java.lang.NullPointerException: scheme\r\n\tat com.ning.http.client.uri.Uri.<init>(Uri.java:56) ~[async-http-client-1.9.21.jar:na]\r\n\tat com.ning.http.client.uri.Uri.create(Uri.java:32) ~[async-http-client-1.9.21.jar:na]\r\n\tat com.ning.http.client.uri.Uri.create(Uri.java:25) ~[async-http-client-1.9.21.jar:na]\r\n\tat com.ning.http.client.RequestBuilderBase.setUrl(RequestBuilderBase.java:307) ~[async-http-client-1.9.21.jar:na]\r\n\tat com.ning.http.client.RequestBuilder.setUrl(RequestBuilder.java:165) ~[async-http-client-1.9.21.jar:na]\r\n\tat play.api.libs.ws.ning.NingWSRequest.buildRequest(NingWS.scala:218) ~[play-ws_2.11-2.4.6.jar:2.4.6]\r\n\tat play.api.libs.ws.ning.NingWSRequest.execute(NingWS.scala:128) ~[play-ws_2.11-2.4.6.jar:2.4.6]\r\n\tat play.api.libs.ws.WSRequest$class.get(WS.scala:408) ~[play-ws_2.11-2.4.6.jar:2.4.6]\r\n\tat play.api.libs.ws.ning.NingWSRequest.get(NingWS.scala:81) ~[play-ws_2.11-2.4.6.jar:2.4.6]\r\n\tat lila.explorer.Env.fetchPgn(Env.scala:29) ~[classes/:na]\r\n```","created_at":"2016-06-11T21:51:11Z","updated_at":"2016-06-12T00:13:52Z","closed_at":"2016-06-12T00:13:51Z","merged_at":"2016-06-12T00:13:51Z","merge_commit_sha":"8a01c56dbeb4062071b46521677d33b243ff9bc7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ornicar/lila/pulls/1994/commits","review_comments_url":"https://api.github.com/repos/ornicar/lila/pulls/1994/comments","review_comment_url":"https://api.github.com/repos/ornicar/lila/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ornicar/lila/issues/1994/comments","statuses_url":"https://api.github.com/repos/ornicar/lila/statuses/5bc35f56ca31e018e85af3605caccad6f267adf6","head":{"label":"niklasf:fix-master-game-import","ref":"fix-master-game-import","sha":"5bc35f56ca31e018e85af3605caccad6f267adf6","user":{"login":"niklasf","id":402777,"avatar_url":"https://avatars.githubusercontent.com/u/402777?v=3","gravatar_id":"","url":"https://api.github.com/users/niklasf","html_url":"https://github.com/niklasf","followers_url":"https://api.github.com/users/niklasf/followers","following_url":"https://api.github.com/users/niklasf/following{/other_user}","gists_url":"https://api.github.com/users/niklasf/gists{/gist_id}","starred_url":"https://api.github.com/users/niklasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklasf/subscriptions","organizations_url":"https://api.github.com/users/niklasf/orgs","repos_url":"https://api.github.com/users/niklasf/repos","events_url":"https://api.github.com/users/niklasf/events{/privacy}","received_events_url":"https://api.github.com/users/niklasf/received_events","type":"User","site_admin":false},"repo":{"id":37821811,"name":"lila","full_name":"niklasf/lila","owner":{"login":"niklasf","id":402777,"avatar_url":"https://avatars.githubusercontent.com/u/402777?v=3","gravatar_id":"","url":"https://api.github.com/users/niklasf","html_url":"https://github.com/niklasf","followers_url":"https://api.github.com/users/niklasf/followers","following_url":"https://api.github.com/users/niklasf/following{/other_user}","gists_url":"https://api.github.com/users/niklasf/gists{/gist_id}","starred_url":"https://api.github.com/users/niklasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklasf/subscriptions","organizations_url":"https://api.github.com/users/niklasf/orgs","repos_url":"https://api.github.com/users/niklasf/repos","events_url":"https://api.github.com/users/niklasf/events{/privacy}","received_events_url":"https://api.github.com/users/niklasf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niklasf/lila","description":"The forever free, adless and open source chess server.","fork":true,"url":"https://api.github.com/repos/niklasf/lila","forks_url":"https://api.github.com/repos/niklasf/lila/forks","keys_url":"https://api.github.com/repos/niklasf/lila/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niklasf/lila/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niklasf/lila/teams","hooks_url":"https://api.github.com/repos/niklasf/lila/hooks","issue_events_url":"https://api.github.com/repos/niklasf/lila/issues/events{/number}","events_url":"https://api.github.com/repos/niklasf/lila/events","assignees_url":"https://api.github.com/repos/niklasf/lila/assignees{/user}","branches_url":"https://api.github.com/repos/niklasf/lila/branches{/branch}","tags_url":"https://api.github.com/repos/niklasf/lila/tags","blobs_url":"https://api.github.com/repos/niklasf/lila/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niklasf/lila/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niklasf/lila/git/refs{/sha}","trees_url":"https://api.github.com/repos/niklasf/lila/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niklasf/lila/statuses/{sha}","languages_url":"https://api.github.com/repos/niklasf/lila/languages","stargazers_url":"https://api.github.com/repos/niklasf/lila/stargazers","contributors_url":"https://api.github.com/repos/niklasf/lila/contributors","subscribers_url":"https://api.github.com/repos/niklasf/lila/subscribers","subscription_url":"https://api.github.com/repos/niklasf/lila/subscription","commits_url":"https://api.github.com/repos/niklasf/lila/commits{/sha}","git_commits_url":"https://api.github.com/repos/niklasf/lila/git/commits{/sha}","comments_url":"https://api.github.com/repos/niklasf/lila/comments{/number}","issue_comment_url":"https://api.github.com/repos/niklasf/lila/issues/comments{/number}","contents_url":"https://api.github.com/repos/niklasf/lila/contents/{+path}","compare_url":"https://api.github.com/repos/niklasf/lila/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niklasf/lila/merges","archive_url":"https://api.github.com/repos/niklasf/lila/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niklasf/lila/downloads","issues_url":"https://api.github.com/repos/niklasf/lila/issues{/number}","pulls_url":"https://api.github.com/repos/niklasf/lila/pulls{/number}","milestones_url":"https://api.github.com/repos/niklasf/lila/milestones{/number}","notifications_url":"https://api.github.com/repos/niklasf/lila/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niklasf/lila/labels{/name}","releases_url":"https://api.github.com/repos/niklasf/lila/releases{/id}","deployments_url":"https://api.github.com/repos/niklasf/lila/deployments","created_at":"2015-06-21T19:04:43Z","updated_at":"2016-02-02T14:16:48Z","pushed_at":"2016-06-11T21:49:00Z","git_url":"git://github.com/niklasf/lila.git","ssh_url":"git@github.com:niklasf/lila.git","clone_url":"https://github.com/niklasf/lila.git","svn_url":"https://github.com/niklasf/lila","homepage":"http://lichess.org","size":116425,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ornicar:master","ref":"master","sha":"911ebcebc0413390f2916734efaf9a7027c272e8","user":{"login":"ornicar","id":140370,"avatar_url":"https://avatars.githubusercontent.com/u/140370?v=3","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"repo":{"id":3507455,"name":"lila","full_name":"ornicar/lila","owner":{"login":"ornicar","id":140370,"avatar_url":"https://avatars.githubusercontent.com/u/140370?v=3","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ornicar/lila","description":"The forever free, adless and open source chess server.","fork":false,"url":"https://api.github.com/repos/ornicar/lila","forks_url":"https://api.github.com/repos/ornicar/lila/forks","keys_url":"https://api.github.com/repos/ornicar/lila/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ornicar/lila/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ornicar/lila/teams","hooks_url":"https://api.github.com/repos/ornicar/lila/hooks","issue_events_url":"https://api.github.com/repos/ornicar/lila/issues/events{/number}","events_url":"https://api.github.com/repos/ornicar/lila/events","assignees_url":"https://api.github.com/repos/ornicar/lila/assignees{/user}","branches_url":"https://api.github.com/repos/ornicar/lila/branches{/branch}","tags_url":"https://api.github.com/repos/ornicar/lila/tags","blobs_url":"https://api.github.com/repos/ornicar/lila/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ornicar/lila/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ornicar/lila/git/refs{/sha}","trees_url":"https://api.github.com/repos/ornicar/lila/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ornicar/lila/statuses/{sha}","languages_url":"https://api.github.com/repos/ornicar/lila/languages","stargazers_url":"https://api.github.com/repos/ornicar/lila/stargazers","contributors_url":"https://api.github.com/repos/ornicar/lila/contributors","subscribers_url":"https://api.github.com/repos/ornicar/lila/subscribers","subscription_url":"https://api.github.com/repos/ornicar/lila/subscription","commits_url":"https://api.github.com/repos/ornicar/lila/commits{/sha}","git_commits_url":"https://api.github.com/repos/ornicar/lila/git/commits{/sha}","comments_url":"https://api.github.com/repos/ornicar/lila/comments{/number}","issue_comment_url":"https://api.github.com/repos/ornicar/lila/issues/comments{/number}","contents_url":"https://api.github.com/repos/ornicar/lila/contents/{+path}","compare_url":"https://api.github.com/repos/ornicar/lila/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ornicar/lila/merges","archive_url":"https://api.github.com/repos/ornicar/lila/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ornicar/lila/downloads","issues_url":"https://api.github.com/repos/ornicar/lila/issues{/number}","pulls_url":"https://api.github.com/repos/ornicar/lila/pulls{/number}","milestones_url":"https://api.github.com/repos/ornicar/lila/milestones{/number}","notifications_url":"https://api.github.com/repos/ornicar/lila/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ornicar/lila/labels{/name}","releases_url":"https://api.github.com/repos/ornicar/lila/releases{/id}","deployments_url":"https://api.github.com/repos/ornicar/lila/deployments","created_at":"2012-02-21T19:46:55Z","updated_at":"2016-06-11T14:33:48Z","pushed_at":"2016-06-12T00:13:52Z","git_url":"git://github.com/ornicar/lila.git","ssh_url":"git@github.com:ornicar/lila.git","clone_url":"https://github.com/ornicar/lila.git","svn_url":"https://github.com/ornicar/lila","homepage":"http://lichess.org","size":141609,"stargazers_count":2063,"watchers_count":2063,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":363,"mirror_url":null,"open_issues_count":304,"forks":363,"open_issues":304,"watchers":2063,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ornicar/lila/pulls/1994"},"html":{"href":"https://github.com/ornicar/lila/pull/1994"},"issue":{"href":"https://api.github.com/repos/ornicar/lila/issues/1994"},"comments":{"href":"https://api.github.com/repos/ornicar/lila/issues/1994/comments"},"review_comments":{"href":"https://api.github.com/repos/ornicar/lila/pulls/1994/comments"},"review_comment":{"href":"https://api.github.com/repos/ornicar/lila/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ornicar/lila/pulls/1994/commits"},"statuses":{"href":"https://api.github.com/repos/ornicar/lila/statuses/5bc35f56ca31e018e85af3605caccad6f267adf6"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ornicar","id":140370,"avatar_url":"https://avatars.githubusercontent.com/u/140370?v=3","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"ornicar"}}