ktor icon indicating copy to clipboard operation
ktor copied to clipboard

JVM(Desktop) Ktor client request.body<T>() Release Proguard catch

Open 3-BodyCoding opened this issue 4 months ago • 1 comments

Ktor version:3.2.3

If using Proguard (even after applying the rules one can find), calling .body() on a response will throw an exception complaining that it can't find the serializer. Kotlinx serialization itself works fine, I only see the bug when trying to use serialization from a ktor request.

error msg: kotlinx.serialization.SerializationException: Serializer for class '' is not found. Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.

3-BodyCoding avatar Sep 12 '25 12:09 3-BodyCoding

@osipxd, could you please check?

e5l avatar Nov 06 '25 08:11 e5l