scala - How to fix the Dropping Close since the SSL connection is already closing error in spray -
i’m making call api, of time keep getting error: “ dropping close since ssl connection closing ” , “ premature connection close (the server doesn't appear support request pipelining) ”. 90% of time error, meaning: in rare occasions query return data supposed to. to make sure wasn’t api’s server issue, replicate exact same query using node.js (express , request libs) , works every time. makes me sure spray bug . here's example of code : case class myclass(user: string, pass: string) class myactor extends actor { import spray.client.pipelining._ import spray.http.basichttpcredentials import spray.http.{httprequest,httpresponse} import scala.concurrent.future import context.dispatcher def receive = { case myclass: myclass => { val credentials: basichttpcredentials = basichttpcredentials(myclass.user, myclass.pass) val url: string = "https://myapi?params=values" val request: httprequest = get(url) ~> addcredentials(cred...