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

Landry Norris

10/19/2021, 9:53 PM
When I run my tests, Ktor throws an exception: "io.ktor.features.UnsupportedMediaTypeException: Content type / is not supported". I have installed Serialization, and it handles application/json, but not all of my endpoints take in a json. Is there something I'm missing, or is this a Ktor bug?
Everything works fine when running normally. It's the test engine where this occurs.
a

Aleksei Tirman [JB]

10/20/2021, 10:05 AM
Please post a code snippet for your test to reproduce your problem.
7 Views