CLOVIS
03/06/2020, 11:21 AM/account/auth/usernamepasswordtoken@Serializable
private data class ApiUsernamePassword(val username: String, val password: String)val client = HttpClient() {
    install(JsonFeature) {
        serializer = KotlinxSerializer()
    }
}
val res = <http://client.post|client.post><String> {
    url("<http://localhost:8000/account/auth/>")
    body = ApiUsernamePassword(username, password)
}Companion
java.lang.NoSuchFieldError: Companion
	at io.ktor.client.features.json.serializer.KotlinxSerializer.<init>(KotlinxSerializer.kt:22)TypeError: Cannot read property 'plain' of undefined
    at new KotlinxSerializer (<http://localhost:9876/absolute/[REDACTED]/adapter-browser.js?fb6a5f1e12e8cc2bf794189b2b55f22def38ca94:157371:29>)gabin
03/06/2020, 11:39 AMCLOVIS
03/06/2020, 11:40 AMgabin
03/06/2020, 11:42 AMgabin
03/06/2020, 11:43 AMCLOVIS
03/06/2020, 11:44 AMCLOVIS
03/06/2020, 11:46 AMFail to send body. Content has type: class net.wildfyre.lib.ApiUsernamePassword (Kotlin reflection is not available), but OutgoingContent expected.ribesg
03/06/2020, 11:57 AMcontentType(ContentType.Application.Json)body = …CLOVIS
03/06/2020, 1:23 PM