Closed jonas-tm closed 2 years ago
Sounds like https://github.com/Kotlin/kotlinx.serialization/issues/2024
But this driver does not use kotlinx serialization, "only" ktor. Workaround: update both kotlinx serialization (core and json) to 1.4.0.
Edit: Of course I use kotlinx serialization: my uuid library uses 1.4.0
Thanks for the fast reply. This is indeed the problem.
Had to add the following to force a consistent version:
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0") {
version { strictly("1.4.0") }
}
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0") {
version { strictly("1.4.0") }
}
Hi, The combination of the your Postgres Driver and Kotlinx Json Serialization causes a compile error on my M1 Mac:
kotlinx.serialization/MissingFieldException.<init>|399804788095754142
As soon as I remove either Kotlinx Json Serialization or the Postgres Driver the problem is gone.
build.gradle.kts
compile error: