Hello guys, I'm new in ktor client. Can you help m...
# ktor
u
Hello guys, I'm new in ktor client. Can you help me about No transformation exception and I already follow the guidelines and I'm using Compose Multiplatform. And It works using string but when I use data class serializable its error.
Screenshot from 2024-03-30 20-08-10.png,Screenshot from 2024-03-30 20-07-39.png,Screenshot from 2024-03-30 20-07-20.png,Screenshot from 2024-03-30 20-06-24.png,Screenshot from 2024-03-30 20-05-36.png
a
the response content type header is set to
text/plain
as opposed to
application/json
👆 1
if you don't want to/can't change the server, you can add
json(contentType = ContentType.Text.Plain)
in your client's
install(ContentNegotiation)
block
👆 1