{"action":"created","issue":{"url":"https://api.github.com/repos/kohsuke/github-api/issues/288","repository_url":"https://api.github.com/repos/kohsuke/github-api","labels_url":"https://api.github.com/repos/kohsuke/github-api/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/kohsuke/github-api/issues/288/comments","events_url":"https://api.github.com/repos/kohsuke/github-api/issues/288/events","html_url":"https://github.com/kohsuke/github-api/issues/288","id":165158992,"number":288,"title":"400 from OKHttp getInputStream","user":{"login":"sbhaktha","id":5631150,"avatar_url":"https://avatars.githubusercontent.com/u/5631150?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhaktha","html_url":"https://github.com/sbhaktha","followers_url":"https://api.github.com/users/sbhaktha/followers","following_url":"https://api.github.com/users/sbhaktha/following{/other_user}","gists_url":"https://api.github.com/users/sbhaktha/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhaktha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhaktha/subscriptions","organizations_url":"https://api.github.com/users/sbhaktha/orgs","repos_url":"https://api.github.com/users/sbhaktha/repos","events_url":"https://api.github.com/users/sbhaktha/events{/privacy}","received_events_url":"https://api.github.com/users/sbhaktha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-12T19:23:10Z","updated_at":"2016-07-13T07:34:32Z","closed_at":null,"body":"Hello,\r\n\r\nI have built a tool using your API, which has been working for many months now, but suddenly fails due to a `FileNotFoundException` thrown by `getInputStrem` in OKHttp. When I paste the url it is trying to download, into my browser, it works perfectly fine. I can see the file contents. This is very strange. Do you have any clue about this?\r\n\r\nStack trace:\r\n\r\n```\r\ntables [ERROR] [07/12/2016 12:15:41.086] [TableService-akka.actor.default-dispatcher-8] [akka://TableService/user/simple-service-actor] Error during processing of request HttpRequest(POST,http://localhost:8084/api/metadata/list,List(Host: localhost:8084, Connection: keep-alive, Content-Length: 59, Origin: http://localhost:8084, X-Requested-With: XMLHttpRequest, User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 OPR/38.0.2220.41, Content-Type: application/json, Referer: http://localhost:8084/, Accept-Encoding: gzip, deflate, lzma, Accept-Language: en-US, en;q=0.8, Cookie: tablestore-data-git=eyJhY2Nlc3NUb2tlbiI6ImYyZDI1OTViNGQ4OTMwMjIwMGI2YjE2MjNhNzQ3ZjQ3MzI1ZWJkOWMifQ==; tablestore-data-git2=eyJhY2Nlc3NUb2tlbiI6ImZlYmMxYTRlYjA1MmI4OWJlNDQwOWFmODk3OGNkYWFhYWY1OWZlNWEifQ==),HttpEntity(application/json,{\"repo\":\"aristo-tables\",\"fork\":\"allenai\",\"branch\":\"master\"}),HTTP/1.1)\r\ntables java.io.FileNotFoundException: 400: Invalid request\r\ntables \r\ntables \tat org.kohsuke.github.Requester.handleApiError(Requester.java:527)\r\ntables \tat org.kohsuke.github.Requester.asStream(Requester.java:293)\r\ntables \tat org.kohsuke.github.GHContent.read(GHContent.java:118)\r\ntables \tat org.allenai.ari.tables.GitHubUtil$$anonfun$getCsvFileLocal$1.apply(GitHubUtil.scala:420)\r\ntables \tat org.allenai.ari.tables.GitHubUtil$$anonfun$getCsvFileLocal$1.apply(GitHubUtil.scala:417)\r\ntables \tat scala.Option.foreach(Option.scala:257)\r\ntables \tat org.allenai.ari.tables.GitHubUtil.getCsvFileLocal(GitHubUtil.scala:417)\r\ntables \tat org.allenai.ari.tables.GitHubUtil$$anonfun$7.apply(GitHubUtil.scala:239)\r\ntables \tat org.allenai.ari.tables.GitHubUtil$$anonfun$7.apply(GitHubUtil.scala:236)\r\ntables \tat scala.collection.parallel.mutable.ParArray$ParArrayIterator.flatmap2combiner(ParArray.scala:417)\r\ntables \tat scala.collection.parallel.ParIterableLike$FlatMap.leaf(ParIterableLike.scala:1072)\r\ntables \tat scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply$mcV$sp(Tasks.scala:49)\r\ntables \tat scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)\r\ntables \tat scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)\r\ntables \tat scala.collection.parallel.Task$class.tryLeaf(Tasks.scala:51)\r\ntables \tat scala.collection.parallel.ParIterableLike$FlatMap.tryLeaf(ParIterableLike.scala:1068)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.internal(Tasks.scala:159)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.internal(Tasks.scala:443)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.compute(Tasks.scala:149)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:443)\r\ntables \tat scala.concurrent.forkjoin.RecursiveAction.exec(RecursiveAction.java:160)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinTask.doJoin(ForkJoinTask.java:341)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinTask.join(ForkJoinTask.java:673)\r\ntables \tat scala.collection.parallel.ForkJoinTasks$WrappedTask$class.sync(Tasks.scala:378)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.sync(Tasks.scala:443)\r\ntables \tat scala.collection.parallel.ForkJoinTasks$class.executeAndWaitResult(Tasks.scala:426)\r\ntables \tat scala.collection.parallel.ForkJoinTaskSupport.executeAndWaitResult(TaskSupport.scala:56)\r\ntables \tat scala.collection.parallel.ExecutionContextTasks$class.executeAndWaitResult(Tasks.scala:558)\r\ntables \tat scala.collection.parallel.ExecutionContextTaskSupport.executeAndWaitResult(TaskSupport.scala:80)\r\ntables \tat scala.collection.parallel.ParIterableLike$ResultMapping.leaf(ParIterableLike.scala:958)\r\ntables \tat scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply$mcV$sp(Tasks.scala:49)\r\ntables \tat scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)\r\ntables \tat scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)\r\ntables \tat scala.collection.parallel.Task$class.tryLeaf(Tasks.scala:51)\r\ntables \tat scala.collection.parallel.ParIterableLike$ResultMapping.tryLeaf(ParIterableLike.scala:953)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.compute(Tasks.scala:152)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:443)\r\ntables \tat scala.concurrent.forkjoin.RecursiveAction.exec(RecursiveAction.java:160)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinTask.doJoin(ForkJoinTask.java:341)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinTask.join(ForkJoinTask.java:673)\r\ntables \tat scala.collection.parallel.ForkJoinTasks$WrappedTask$class.sync(Tasks.scala:378)\r\ntables \tat scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.sync(Tasks.scala:443)\r\ntables \tat scala.collection.parallel.ForkJoinTasks$class.executeAndWaitResult(Tasks.scala:426)\r\ntables \tat scala.collection.parallel.ForkJoinTaskSupport.executeAndWaitResult(TaskSupport.scala:56)\r\ntables \tat scala.collection.parallel.ExecutionContextTasks$class.executeAndWaitResult(Tasks.scala:558)\r\ntables \tat scala.collection.parallel.ExecutionContextTaskSupport.executeAndWaitResult(TaskSupport.scala:80)\r\ntables \tat scala.collection.parallel.ParIterableLike$class.flatMap(ParIterableLike.scala:513)\r\ntables \tat scala.collection.parallel.mutable.ParArray.flatMap(ParArray.scala:56)\r\ntables \tat org.allenai.ari.tables.GitHubUtil.org$allenai$ari$tables$GitHubUtil$$getTableMetadata(GitHubUtil.scala:236)\r\ntables \tat org.allenai.ari.tables.GitHubUtil$$anonfun$getTableMetadata$2.apply(GitHubUtil.scala:229)\r\ntables \tat org.allenai.ari.tables.GitHubUtil$$anonfun$getTableMetadata$2.apply(GitHubUtil.scala:229)\r\ntables \tat scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)\r\ntables \tat scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)\r\ntables \tat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)\r\ntables \tat akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)\r\ntables \tat akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91)\r\ntables \tat akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)\r\ntables \tat akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)\r\ntables \tat scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)\r\ntables \tat akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:90)\r\ntables \tat akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:39)\r\ntables \tat akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:399)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\r\ntables \tat scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)\r\ntables Caused by: java.io.FileNotFoundException: https://raw.githubusercontent.com/allenai/aristo-tables/master/tables/abstract_concrete/abstract_concrete.csv?token=AFXsrivOTIoDru9Htw9aNTJbprmE5m0Gks5XhUHfwA%3D%3D\r\ntables \tat com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:228)\r\ntables \tat com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)\r\ntables \tat com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)\r\ntables \tat org.kohsuke.github.Requester.asStream(Requester.java:291)\r\ntables \t... 66 more\r\n```\r\n\r\nYour help is greatly appreciated,\r\nSumithra"},"comment":{"url":"https://api.github.com/repos/kohsuke/github-api/issues/comments/232278752","html_url":"https://github.com/kohsuke/github-api/issues/288#issuecomment-232278752","issue_url":"https://api.github.com/repos/kohsuke/github-api/issues/288","id":232278752,"user":{"login":"Shredder121","id":4105066,"avatar_url":"https://avatars.githubusercontent.com/u/4105066?v=3","gravatar_id":"","url":"https://api.github.com/users/Shredder121","html_url":"https://github.com/Shredder121","followers_url":"https://api.github.com/users/Shredder121/followers","following_url":"https://api.github.com/users/Shredder121/following{/other_user}","gists_url":"https://api.github.com/users/Shredder121/gists{/gist_id}","starred_url":"https://api.github.com/users/Shredder121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shredder121/subscriptions","organizations_url":"https://api.github.com/users/Shredder121/orgs","repos_url":"https://api.github.com/users/Shredder121/repos","events_url":"https://api.github.com/users/Shredder121/events{/privacy}","received_events_url":"https://api.github.com/users/Shredder121/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T07:34:32Z","updated_at":"2016-07-13T07:34:32Z","body":"Could you, for science, build in a _small delay_ between obtaining the token and using it?\r\nMaybe you're too quick for GitHub.\r\n\r\nAnd maybe that's why manually browsing to it works, because that has a long enough delay."}}
{"actor":{"display_login":"Shredder121"}}