{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/19287","labels_url":"https://api.github.com/repos/akka/akka/issues/19287/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/19287/comments","events_url":"https://api.github.com/repos/akka/akka/issues/19287/events","html_url":"https://github.com/akka/akka/issues/19287","id":123781865,"number":19287,"title":"singleRequest to request HTTPS page does not work anymore (2.0-M2 -> 2.0) ","user":{"login":"pme123","id":3437927,"avatar_url":"https://avatars.githubusercontent.com/u/3437927?v=3","gravatar_id":"","url":"https://api.github.com/users/pme123","html_url":"https://github.com/pme123","followers_url":"https://api.github.com/users/pme123/followers","following_url":"https://api.github.com/users/pme123/following{/other_user}","gists_url":"https://api.github.com/users/pme123/gists{/gist_id}","starred_url":"https://api.github.com/users/pme123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pme123/subscriptions","organizations_url":"https://api.github.com/users/pme123/orgs","repos_url":"https://api.github.com/users/pme123/repos","events_url":"https://api.github.com/users/pme123/events{/privacy}","received_events_url":"https://api.github.com/users/pme123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/1%20-%20triaged","name":"1 - triaged","color":"5319e7"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"CCCCCC"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:client","name":"t:http:client","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/akka/akka/milestones/69","html_url":"https://github.com/akka/akka/milestones/http-2.x","labels_url":"https://api.github.com/repos/akka/akka/milestones/69/labels","id":1469540,"number":69,"title":"http-2.x","description":null,"creator":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":6,"state":"open","created_at":"2015-12-21T13:07:22Z","updated_at":"2016-01-07T13:24:54Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-12-24T09:39:47Z","updated_at":"2016-01-07T15:21:07Z","closed_at":null,"body":"In 2.0-M2 I used the following snippet which worked perfectly:\r\n    `Source(Http().singleRequest(request))`\r\n\r\nIn 2.0.1 I changed it to:\r\n    `Source.fromFuture(Http().singleRequest(request))`\r\n\r\nI get now the following exception:\r\n```\r\nCaused by: javax.net.ssl.SSLException: Received fatal alert: handshake_failure\r\n\tat sun.security.ssl.Alerts.getSSLException(Alerts.java:208)\r\n\tat sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1666)\r\n\tat sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1634)\r\n\tat sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1800)\r\n\tat sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1083)\r\n\tat sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:907)\r\n\tat sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)\r\n\tat javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)\r\n\tat akka.stream.impl.io.SslTlsCipherActor.akka$stream$impl$io$SslTlsCipherActor$$doUnwrap(SslTlsCipherActor.scala:381)\r\n\tat akka.stream.impl.io.SslTlsCipherActor.akka$stream$impl$io$SslTlsCipherActor$$doInbound(SslTlsCipherActor.scala:304)\r\n\tat akka.stream.impl.io.SslTlsCipherActor$$anonfun$1.apply$mcV$sp(SslTlsCipherActor.scala:240)\r\n\tat akka.stream.impl.Pump$class.pump(Transfer.scala:199)\r\n\tat akka.stream.impl.io.SslTlsCipherActor.pump(SslTlsCipherActor.scala:45)\r\n\tat akka.stream.impl.BatchingInputBuffer.enqueueInputElement(ActorProcessor.scala:90)\r\n\tat akka.stream.impl.BatchingInputBuffer$$anonfun$upstreamRunning$1.applyOrElse(ActorProcessor.scala:141)\r\n\tat scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)\r\n\tat akka.stream.impl.SubReceive.apply(Transfer.scala:16)\r\n\tat akka.stream.impl.FanIn$InputBunch$$anonfun$subreceive$1.applyOrElse(FanIn.scala:234)\r\n\tat scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)\r\n\tat akka.stream.impl.SubReceive.apply(Transfer.scala:16)\r\n\tat akka.stream.impl.SubReceive.apply(Transfer.scala:12)\r\n\tat scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123)\r\n\tat akka.stream.impl.SubReceive.applyOrElse(Transfer.scala:12)\r\n\tat scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)\r\n\tat akka.actor.Actor$class.aroundReceive(Actor.scala:467)\r\n\tat akka.stream.impl.io.SslTlsCipherActor.aroundReceive(SslTlsCipherActor.scala:45)\r\n```\r\nThe request retrieves a JSON over an HTTPS uri.\r\nI found nothing in the documentation that this functionality has changed."},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/169692698","html_url":"https://github.com/akka/akka/issues/19287#issuecomment-169692698","issue_url":"https://api.github.com/repos/akka/akka/issues/19287","id":169692698,"user":{"login":"johanandren","id":666915,"avatar_url":"https://avatars.githubusercontent.com/u/666915?v=3","gravatar_id":"","url":"https://api.github.com/users/johanandren","html_url":"https://github.com/johanandren","followers_url":"https://api.github.com/users/johanandren/followers","following_url":"https://api.github.com/users/johanandren/following{/other_user}","gists_url":"https://api.github.com/users/johanandren/gists{/gist_id}","starred_url":"https://api.github.com/users/johanandren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanandren/subscriptions","organizations_url":"https://api.github.com/users/johanandren/orgs","repos_url":"https://api.github.com/users/johanandren/repos","events_url":"https://api.github.com/users/johanandren/events{/privacy}","received_events_url":"https://api.github.com/users/johanandren/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T15:21:07Z","updated_at":"2016-01-07T15:21:07Z","body":"I looked a bit at this, cert and chain looks ok, root cert is in some trust store at least on my computer. Works using `URL.openConnection`, but not using `Http().singleRequest`\r\n\r\nNot sure if this is relevant but with a breakpoint in SslTlsCipherActor.fail i can see the `handshake_failure` from above interleaved with this:\r\n```\r\nInbound closed before receiving peer's close_notify: possible truncation attack?\r\n```\r\nI guess that might be because I'm breakpointing though.\r\n"}}