577432 (4) [Avatar] Offline
#1
Scala version : 2.12
Play version : 2.6.15

With the following code nothing is printed out from the iteratee while the Logger print status 200.

def tweets = Action.async {
val loggingIteratee = Iteratee.foreach[Array[Byte]] { array =>
Logger.info (array.map(_.toChar).mkString)
}


credentials.map { case (consumerKey, requestToken) =>
WS
.url("https://stream.twitter.com/1.1/statuses/filter.json")
.sign(OAuthCalculator(consumerKey, requestToken))
.withQueryStringParameters("track" -> "reactive")
.withRequestTimeout(90 second)
.get()
.map { response =>
Logger.info("Status: " +response.status)
loggingIteratee
}
.map{_ =>
Ok("Stream closed")
}
} getOrElse {
Future.successful {
InternalServerError("Twitter credential missing")
}
}
}

Does some one has a clue on why ?
577432 (4) [Avatar] Offline
#2
Has someone a clue on this ?