https://kotlinlang.org logo
#ktor
Title
# ktor
v

Viktor Orlyk

06/06/2022, 4:19 PM
Hi, can someone help figuring out what is going wrong with this test https://stackoverflow.com/questions/72520472/ktor-testing-fail-to-serialize-body-content-has-type-class-but-outgoingcon Thanks in advance
a

Andreas Scheja

06/06/2022, 4:28 PM
I'd say you're missing the
ContentNegotiation
plugin in your client.
👍 1
It's actually telling you in the error message
Copy code
If you expect serialized body, please check that you have installed the corresponding plugin(like `ContentNegotiation`) and set `Content-Type` header.
👍 1