Mez Pahlan
01/01/2025, 3:32 PMUncaught Kotlin exception: kotlin.IllegalStateException: TLS sessions are not supported on Native platform.
The code at this stage is fairly simple:
val client = HttpClient(CIO)
val httpResponse = client.get("<https://ktor.io/>")
val stringBody = httpResponse.body<String>()
println(stringBody)
Here's my `build.gradle.kts`:
sourceSets {
commonMain.dependencies {
implementation(libs.clikt)
implementation(libs.kotlinxCoroutines)
implementation(libs.kotlinxSerializationJson)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.cio)
implementation(libs.okio)
}
}
Am I doing something wrong or is making network requests on Linux not achievable with Kotlin Multiplatform? Thanks in advance.Kweku A. Mensah
01/01/2025, 3:47 PMKweku A. Mensah
01/01/2025, 3:49 PMval stringBody = httpResponse.bodyAsText()
Mez Pahlan
01/01/2025, 3:54 PM