There is a very weird issue coming up. I have all ...
# ktor
h
There is a very weird issue coming up. I have all the plugins installed once. But when I try to run the project I get
Copy code
Exception in thread "main" io.ktor.application.DuplicateApplicationFeatureException: Conflicting application feature is already installed with the same key as `CORS`
And the code looks like:
Copy code
fun main() {
    embeddedServer(Netty, port = 8081, host = "0.0.0.0") {
        configureHTTP()
        configureOauth()
        configureRoutingAndSerialization()
        configureStatusPages()
    }.start(wait = true)
}
The weird part is: The first feature which is inside the blocks always throws the error. In this case is HTTP but if I take Oauth to first position it will throw exception of
Authentication
a
This is most likely it https://youtrack.jetbrains.com/issue/KTOR-2734. The fix will be released in 1.6.1.