Yassine Abou
04/23/2025, 8:32 PMmy ktor version is 3.1.0
and compose version is 1.7.3
. Below are my setup details and current configuration: Dependencies (commonMain):
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.client.cio)
Koin DI Configuration:
single {
Json {
ignoreUnknownKeys = true
isLenient = true
encodeDefaults = false // Match API expectations [[8]]
}
}
// 2. HTTP Client Configuration
single<HttpClient> {
HttpClient(CIO) {
engine {
requestTimeout = 0
}
// Specify engine explicitly [[1]][[4]]
install(ContentNegotiation) {
json(
json = get(), // Use shared JSON instance
contentType = ContentType.Application.Json
)
}
}
How could I fix this?Yassine Abou
04/23/2025, 8:36 PMERROR
wasm validation error: at offset 5557696: type mismatch: expression has type (ref null 1950) but expected externref
. here is the repository link for more context: https://github.com/yassineAbou/LLMSMichael Krussel
04/23/2025, 9:20 PMYassine Abou
04/23/2025, 9:47 PM