{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/20018","repository_url":"https://api.github.com/repos/akka/akka","labels_url":"https://api.github.com/repos/akka/akka/issues/20018/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/20018/comments","events_url":"https://api.github.com/repos/akka/akka/issues/20018/events","html_url":"https://github.com/akka/akka/issues/20018","id":140318278,"number":20018,"title":"Implicit conversion from route to flow for Http.bindAndHandle is a bit too magical","user":{"login":"rrodseth","id":751640,"avatar_url":"https://avatars.githubusercontent.com/u/751640?v=3","gravatar_id":"","url":"https://api.github.com/users/rrodseth","html_url":"https://github.com/rrodseth","followers_url":"https://api.github.com/users/rrodseth/followers","following_url":"https://api.github.com/users/rrodseth/following{/other_user}","gists_url":"https://api.github.com/users/rrodseth/gists{/gist_id}","starred_url":"https://api.github.com/users/rrodseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrodseth/subscriptions","organizations_url":"https://api.github.com/users/rrodseth/orgs","repos_url":"https://api.github.com/users/rrodseth/repos","events_url":"https://api.github.com/users/rrodseth/events{/privacy}","received_events_url":"https://api.github.com/users/rrodseth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"CCCCCC"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akka/akka/milestones/55","html_url":"https://github.com/akka/akka/milestones/2.4.x","labels_url":"https://api.github.com/repos/akka/akka/milestones/55/labels","id":1257017,"number":55,"title":"2.4.x","description":"","creator":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"open_issues":248,"closed_issues":23,"state":"open","created_at":"2015-08-16T17:29:51Z","updated_at":"2016-09-08T16:15:49Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-11T23:33:25Z","updated_at":"2016-09-08T16:15:49Z","closed_at":"2016-09-08T16:15:49Z","body":"(submitted at Konrad's request)\r\n\r\nThe Http.bindAndHandle call takes a Flow and there is a conversion from route to flow in the form of\r\nRouteResult.route2HandlerFlow\r\n\r\nStill not quite sure what happened, but I was unable to get this working until I added an explicit type to my routes declaration\r\n\r\nval routeFlow: Flow[HttpRequest, HttpResponse, NotUsed] = ...\r\n\r\nNow I've opted to be explicit:\r\n\r\n val route = ...\r\n  val routeFlow: Flow[HttpRequest, HttpResponse, NotUsed]  = RouteResult.route2HandlerFlow(route)\r\n\r\nThe documentation does mention the RouteResult method, at least on this page:\r\nhttp://doc.akka.io/docs/akka/2.4.2/scala/http/routing-dsl/overview.html\r\n\r\nBut you might want to consider using it in samples, and/or including the explicit types on intermediate vals."},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/245651702","html_url":"https://github.com/akka/akka/issues/20018#issuecomment-245651702","issue_url":"https://api.github.com/repos/akka/akka/issues/20018","id":245651702,"user":{"login":"jrudolph","id":9868,"avatar_url":"https://avatars.githubusercontent.com/u/9868?v=3","gravatar_id":"","url":"https://api.github.com/users/jrudolph","html_url":"https://github.com/jrudolph","followers_url":"https://api.github.com/users/jrudolph/followers","following_url":"https://api.github.com/users/jrudolph/following{/other_user}","gists_url":"https://api.github.com/users/jrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/jrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrudolph/subscriptions","organizations_url":"https://api.github.com/users/jrudolph/orgs","repos_url":"https://api.github.com/users/jrudolph/repos","events_url":"https://api.github.com/users/jrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/jrudolph/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T16:15:49Z","updated_at":"2016-09-08T16:15:49Z","body":"Ticket moved to http://github.com/akka/akka-http\r\n Rationale for the move discussed here: akka/akka-meta#27\r\n\r\nIf you are interested in contributing or tracking this issue, please comment in akka-http instead from now on :-)"}}
{"actor":{"display_login":"jrudolph"}}