I’m receiving this `java.lang.IllegalStateExceptio...
# ktor
j
I’m receiving this
java.lang.IllegalStateException: No request transformation found:
when running Integration Tests for my endpoint. If I just run the application it works fine, no exceptions or whatsoever. Any ideas?
s
Are you installing a plugin in
main
that you're not installing in
testApplication { application { here() } }
?
j
It’s all the same
I finally was able to add this
Copy code
install(ContentNegotiation) {
                json( Json { serializersModule = serializersModule })
            }
to the
testApplication { createClient { - } }
and it worked
s
Ah, yes. I'm sorry. I thought this error was coming from a plugin that was missing since I've ran into it myself a couple times. Client you also need to install plugin for testing, which is typically not setup in your server.