Could it be that the response is really large and the Unmarshaller is just spending all of the time concatenating really large string?
On Fri, Nov 24, 2017 at 5:03 PM Andrew <[email protected]> wrote: > Hi, > > I'm trying to use akka http to make a api call but it just it just blocks. > I do see the headers and status print and it's successful in that regard, > but it blocks on the unmarshal of the body. This is supposed to be json. > Any ideas? > > val fileId = "abc......" > > val request = HttpRequest( > method = HttpMethods.GET, > uri = Uri(s"https://www.googleapis.com/drive/v2/files/${fileId}"), > headers = oauthHeader(token.accessToken) > ) > > val f = Http().singleRequest(request).flatMap{ httpResponse => > log.debug(s"Response status ${httpResponse.status} headers > ${httpResponse.headers}") > Unmarshal(httpResponse.entity).to[String] > } > > > val folder = Await.result(*f*, Duration.Inf) > > > > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
