anyone seeing following when using Kotlin 2.1.0? ...
# webassembly
j
anyone seeing following when using Kotlin 2.1.0?
Copy code
Uncaught runtime errors:
×
ERROR
BodyStreamBuffer was aborted
AbortError: BodyStreamBuffer was aborted
    at io.ktor.client.fetch.abort_$external_fun (webpack-internal:///./kotlin/confetti.uninstantiated.mjs:6348:73)
    at <com.example:compose-web>.io.ktor.client.engine.js.JsClientEngine$execute$lambda.invoke (<http://localhost:8080/fcf42d9a82ea8519e5a0.wasm:wasm-function[82423]:0xc694e2>)
    at <com.example:compose-web>.io.ktor.client.engine.js.JsClientEngine$execute$lambda.invoke (<http://localhost:8080/fcf42d9a82ea8519e5a0.wasm:wasm-function[82424]:0xc6950a>)
    at <com.example:compose-web>.kotlinx.coroutines.InvokeOnCancelling.invoke (<http://localhost:8080/fcf42d9a82ea8519e5a0.wasm:wasm-function[24699]:0x6edad7>)
hmm, it doesn't happen consistently
r
I've had these since earlier Kotlin versions. I think it's about ktor calls being cancelled due to user navigating away and clearing the coroutine scope in my case. Didn't go deep into trying to ignore those though.
b
I think, it’s worth filing an issue to ktor, at least sharing in #C0A974TJ9