Hi I’m playing around my new synology server and I...
# ktor
l
Hi I’m playing around my new synology server and I’m accessing API thu an Android app. With Insomnia, I’ve managed to login and my server took ~400ms to respond. With Ktor (on Android) it took ~10000 ms which is reeeallly long..I don”t understand why this is happening. My code is pretty straightforward
Copy code
try {
    val elapsed = measureTimeMillis {
        val response = client.get("url")
    }
    println("INFO RESPONSE TIME $elapsed")

} catch (e: Exception) {
   //...
}
I/System.out: INFO RESPONSE TIME 10276
EDIT : I’ve tried with Retrofit and OkHttp and I get the same result (~10000ms). So it’s not an issue on Ktor. The thing is the same call on my browser or Insomnia / Postman works great..I don’t know what’s happening 😞