{"action":"closed","issue":{"url":"https://api.github.com/repos/adrianhurt/play-api-rest-seed/issues/1","labels_url":"https://api.github.com/repos/adrianhurt/play-api-rest-seed/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/adrianhurt/play-api-rest-seed/issues/1/comments","events_url":"https://api.github.com/repos/adrianhurt/play-api-rest-seed/issues/1/events","html_url":"https://github.com/adrianhurt/play-api-rest-seed/issues/1","id":108157823,"number":1,"title":"ambiguous reference to overloaded definition","user":{"login":"darkman13","id":2570832,"avatar_url":"https://avatars.githubusercontent.com/u/2570832?v=3","gravatar_id":"","url":"https://api.github.com/users/darkman13","html_url":"https://github.com/darkman13","followers_url":"https://api.github.com/users/darkman13/followers","following_url":"https://api.github.com/users/darkman13/following{/other_user}","gists_url":"https://api.github.com/users/darkman13/gists{/gist_id}","starred_url":"https://api.github.com/users/darkman13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkman13/subscriptions","organizations_url":"https://api.github.com/users/darkman13/orgs","repos_url":"https://api.github.com/users/darkman13/repos","events_url":"https://api.github.com/users/darkman13/events{/privacy}","received_events_url":"https://api.github.com/users/darkman13/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T15:43:45Z","updated_at":"2015-09-27T17:19:14Z","closed_at":"2015-09-27T17:19:14Z","body":"```scala\r\nclass Log @Inject() (ws: WSClient)(val messagesApi: MessagesApi) extends api.ApiController with I18nSupport {\r\n\r\n  def click = GetAction { implicit request =>\r\n    implicit val foramtJson = Json.format[Cookie]\r\n    ok(ws.url([Some url] + request.uri).withHeaders().get().map { response =>\r\n      Ok(Json.obj(\"status\" -> 0, \"data\" -> Json.toJson(convertCookies(response.cookies))))\r\n    })\r\n  }\r\n}\r\n```\r\n\r\nthis code generated blow error \r\n\r\nplay.sbt.PlayExceptions$CompilationException: Compilation error[ambiguous reference to overloaded definition,\r\nboth method ok in trait ApiController of type [A](futObj: scala.concurrent.Future[A], headers: (String, String)*)(implicit w: play.api.libs.json.Writes[A])scala.concurrent.Future[api.ApiResult]\r\nand  method ok in trait ApiController of type [A](obj: A, headers: (String, String)*)(implicit w: play.api.libs.json.Writes[A])scala.concurrent.Future[api.ApiResult]\r\n\r\nhow can i use wsclient in controller async??"}}