Skip to content

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

@3-BodyCoding

Description

@3-BodyCoding

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions